Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/384.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 诱惑-我想更改报表中@BeforeClass和@AfterClass方法的标题(我正在使用TestNG)_Java_Selenium_Testng_Allure - Fatal编程技术网

Java 诱惑-我想更改报表中@BeforeClass和@AfterClass方法的标题(我正在使用TestNG)

Java 诱惑-我想更改报表中@BeforeClass和@AfterClass方法的标题(我正在使用TestNG),java,selenium,testng,allure,Java,Selenium,Testng,Allure,在每次测试之前,我都会使用@BeforeClass注释运行安装步骤。 当这些步骤失败时,我会在诱惑报告中看到课前标题。 如何将此标题更改为“安装”?摘自: 此外,您还可以使用@description annotation添加其他说明: @Description(“Test Description: Login test with wrong username and wrong password.”) 谢谢,我实际上需要@Title(“安装”)注释。 它完全符合我的需要 @Descriptio

在每次测试之前,我都会使用
@BeforeClass
注释运行安装步骤。 当这些步骤失败时,我会在诱惑报告中看到课前标题。 如何将此标题更改为“安装”?

摘自:

此外,您还可以使用@description annotation添加其他说明:

@Description(“Test Description: Login test with wrong username and wrong password.”)

谢谢,我实际上需要
@Title(“安装”)
注释。 它完全符合我的需要

@Description(“Test Description: Login test with wrong username and wrong password.”)