Fixtures
Last updated
Was this helpful?
Last updated
Was this helpful?
Fixtures used by all of the tests are defined in this section
BaseFixtureConfiguration
is base class which configures and builds AtataContext with settings defined in settings.json
file.
DriverReuseTestFixture
has a constructor which you can use to define if you want driver to start a new browser instance for each test or reuse the same instance.
Reusing browser instance is convenient because you can login once and then start all your tests after that.
AutoLoginTestFixture
is used for tests which require login to happen first. Simply inherit from this fixture and then define your own tests. AutoLoginTestFixture
inherits from DriverReuseTestFixture
and reuses the same driver instance by default.
SaveCookiesTestFixture
is used to save the cookies when you use the RememberMe functionality on the login page. Extracted cookies can be loaded into browser instance when needed on tests inheriting from this fixture.
Example of loading extracted cookies: