在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):allure-examples/allure-testng-example开源软件地址(OpenSource Url):https://github.com/allure-examples/allure-testng-example开源编程语言(OpenSource Language):Java 100.0%开源软件介绍(OpenSource Introduction):Allure TestNG ExampleGetting StartedTo generate Allure Report you should perform following steps: $ git clone [email protected]:allure-examples/allure-testng-example.git
$ ./mvnw clean test site Report will be generated to $ ./mvnw io.qameta.allure:allure-maven:serve There is another way of generating the report. The generated report can be opened here "target/site/allure-maven-plugin/index.html". The command to generate the report is the following: $ ./mvnw io.qameta.allure:allure-maven:report Tests selective run (filtering)This feature works when you are triggering a build from Allure TestOps by selecting seperate test cases (not all in your project). Allure TestOps agent creates testplan.json file with the list of tests on CI, then the test framework adaptor reads the content and makes the seletion of the tests to be executed. RequirementsAllure framework libraries not earlier than 2.13.9 How to check locallyFor this particular exapmple we have testplan.json with the following content: { "version": "1.0", "tests": [{ "id": 11111, "selector": "my.company.SimpleTest.simpleTestOne" }] } So, we expect only StepsIn the terminal type the following: export ALLURE_TESTPLAN_PATH=testplan.json
# just to check the variable was created
echo $ALLURE_TESTPLAN_PATH
./mvnw clean test TestNG will execute only one test of the two tests present in this example project. More
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论