Is there a beforeClass method() in XamarinUITest

Hello,
In XamarinUITest I was wondering is there a method that I can run when the class loads and before any of the test runs like @BeforeClass in testng
I don't want to use the constructor.

Tagged:

Best Answer

  • dkarzondkarzon ✭✭
    Accepted Answer

    Since Xamarin.UITest is built off NUnit you can use the attributes from NUnit in your tests.
    [TestFixtureSetUp] - will run at the start of a test fixture (class)
    [SetUp] - will run before each test in a fixture

Answers

  • dkarzondkarzon Member ✭✭
    Accepted Answer

    Since Xamarin.UITest is built off NUnit you can use the attributes from NUnit in your tests.
    [TestFixtureSetUp] - will run at the start of a test fixture (class)
    [SetUp] - will run before each test in a fixture

  • DineshAndavarDineshAndavar Member ✭✭

    @dkarzon Thank you very much. I just made the shift from Java world to c#/Xamarin and getting a feel of it.

Sign In or Register to comment.