• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

allure-examples/allure-testng-example: Example of usage Allure Report with TestN ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(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 Example

Getting Started

To 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 target/site/allure-maven-plugin folder. To open the report you can use the following command:

$ ./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.

Requirements

Allure framework libraries not earlier than 2.13.9

How to check locally

For 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 simpleTestOne test to be executed.

Steps

In 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




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap