Giter Club home page Giter Club logo

allure-testng-example's 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

allure-testng-example's People

Contributors

baev avatar cheshi-mantu avatar dependabot-preview[bot] avatar eroshenkoam avatar mfuzalam avatar robot-bucket avatar vania-pooh avatar volkovs avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.