Skip to content

Instantly share code, notes, and snippets.

@eliasnogueira
Last active August 23, 2020 17:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eliasnogueira/d6b359ab8b075994576b71f120d02c37 to your computer and use it in GitHub Desktop.
Save eliasnogueira/d6b359ab8b075994576b71f120d02c37 to your computer and use it in GitHub Desktop.
Example of a class without a Base Test approach
public class SecondTest {
private static WebDriver driver;
@BeforeAll
static void webdrivermanagerSetup() {
WebDriverManager.chromedriver().setup();
driver = new ChromeDriver();
driver.get("http://eliasnogueira.com");
}
@AfterAll
static void quitBrowser() {
driver.quit();
}
@Test
void secondTest() {
// the test goes here
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment