Selenium Test Setup Class
SeleniumTestSetup class:
- Every test method extends the SeleniumTestSetup class eg., AdminOptOutTests extends SeleniumTestSetup
- It contains @beforeSuite and @afterSuite methods
- Primary function of this class is to setup everything that is required by an API or UI Test Class
- Primary functions: Initialize WebDriver, Generate Authentication Token for API, Login to application, and provide getterMethods to getDriver(), getDriverExt(), getScreenshotPath() and AfterSuite method
Comments
Post a Comment