Mbunite and selenium

Can someone tell me how to get mbunit to run more than one test at a time without creating and breaking after each test?

I am currently using selenium to test the user interface, and you need to run tests, sequentially make a login page.

Thanks in advance CB

+3
source share
1 answer

You are looking for the FixtureSetUp / FixtureTearDown attribute called TestFixtureSetUp, which is called at the class level, that is, it will be configured once for all tests in one test class.

The Setup / TearDown attribute is invoked at the method level.

MbUnit . .

[assembly: AssemblyCleanUp(typeof(AssemblyCleaner))]
...
public class AssemblyCleaner
{
    [SetUp]
    public static void SetUp()
    {
        Console.WriteLine("Setting up {0}", typeof(AssemblyCleanUp).Assembly.FullName);
    }
    [TearDown]
    public static void TearDown()
    {
        Console.WriteLine("Cleaning up {0}", typeof(AssemblyCleanUp).Assembly.FullName);
    }
}
+3

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


All Articles