Can NUnit face TestNG

Possible duplicate:
Selenium, Nunit Best Practices?

I am working on Selenium using TestNG, which has given me a lot of flexibility, especially with test dependency. When working with an integration test based on the user interface, it becomes necessary to have a test dependency. For example, I have a process of registering 5 steps, and each step is an individual method that is mutually dependent. those. -

...... step3Method DependsOn step2Method DependsOn step1Method

Not only that, I can also determine which class should be executed before any other class. For example, the registration class must be started first, followed by the ManageProfile class.

These devices are very easy to achieve with TestNG, but TestNG can only be used with java. While working on a Selenium test with C #, I came across NUnit. But I believe that these fixtures are not possible with NUnit, and I also understand that NUnit is a unit testing system, and not for integration testing. But then my choice of Nunit is wrong, or I just don’t know how these functions can be used in NUnit.

+4
source share
1 answer

I usually use the Moq mocking library to set up my instruments when writing NUnit tests.

+2
source

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


All Articles