Test data WatiN reset

I wonder how people are currently reloading their data / clearing test residues for their WatiN / Wartir tests?

For example, let's say there is a test to add a user to the system, and the username must be unique. Obviously, the first start without any users should work fine, but the second start will end without manual intervention.

+3
source share
4 answers

There are several strategies you could do for this, I assume that you are using WatiN with the Nunit tests or VS Unit to run the tests.

, , , "" . .net System.Transactions .

"" , - . , , . , .

- - , . , , .

, .

, . , , .

Linq to Sql AFAIK, Linq sql, . SubmitChanges(); , , .

+3

script, reset. script .

+1

- Watir/WatiN. , Selenium, Windmill ( HtmlUnit, API ..). StackOverflow.

0

WatiN .

, , #, ( ).

-2

Source: https://habr.com/ru/post/1707380/


All Articles