<!-- Allure TestNG Adapter --> <dependency> <groupId>io.qameta.allure</groupId> <artifactId>allure-testng</artifactId> <version>2.14.0</version> <scope>test</scope> </dependency> <!-- Allure Java Annotations --> <dependency> <groupId>io.qameta.allure</groupId> <artifactId>allure-java-annotations</artifactId> <version>2.14.0</version> </dependency> import io.qameta.allure.Step; import io.qameta.allure.Attachment; import org.testng.annotations.BeforeMethod; import org.testng.annotations.Test; public class MyTest { @BeforeMethod public void setUp() { } @Test public void testSomething() { } public byte[] attachFile() { } } mvn allure:serve


上一篇:
下一篇:
切换中文