@Test
public void testLogin() {
}
@Test
public void testSuccessfulLogin() {
}
@Test
public void testLogin() {
}
@Test
public void testLogin() {
}
<build>
<plugins>
<plugin>
<groupId>io.qameta.allure</groupId>
<artifactId>allure-maven</artifactId>
<version>2.10.0</version>
</plugin>
</plugins>
</build>
shell
mvn clean test
shell
mvn allure:report
shell
mvn allure:serve
@AfterMethod
public void takeScreenshot() {
Allure.addAttachment("Screenshot", new ByteArrayInputStream(screenshot));
}
@ParameterizedTest
@ValueSource(ints = {1, 2, 3})
@TestInstance(TestInstance.Lifecycle.PER_METHOD)
public void testParameterized(int value) {
}
@Test
public void testLogin() {
openLoginPage();
enterCredentials();
clickLoginButton();
}
private void openLoginPage() {
}
private void enterCredentials() {
}
private void clickLoginButton() {
}