Skip to content

Latest commit

 

History

History
53 lines (38 loc) · 3.09 KB

File metadata and controls

53 lines (38 loc) · 3.09 KB

RestAssuredCucumberGroovy

API Automation using Rest Assured, Groovy, Cucumber, Gradle and Allure reports.

Job Status Report
Smoke Smoke Tests Allure Report Allure Report
Regression Regression Tests Allure Report Allure Report

To run the tests:

Option 1:

  • Execute: ./gradlew test
  • Low console output, just the names of the scenarios and the result.

Option 2:

  • Execute: ./gradlew cucumber
  • Will display all the scenarios in the console output while running along the errors.

Option 3:

  • Execute: ./gradlew runTests
  • Will display all the scenarios in the console output while running along the errors.

Parameters:

  • Env:

    • You can choose which environment you are going to test.
    • Add to command line: -Denv=desired
    • Available: dev, qa, stage, prod
    • Default: prod
    • A tag for the environment will be automatically added, so only scenarios that have the selected environment tag will run.
  • Mode:

    • You can choose if you want to use public urls or private.
    • Add to command line: -Dmode=desired
    • Available: private, public
    • Default: public
  • Tags:

    • You can choose which scenarios you want to run.
      • Add to command: -tags="desired"
      • Remember each scenario starts with @
      • You can use "and", "or", "not" operators and also "(" or ")".
      • Example: -Dtags="@2 and not @3"
      • A tag for the environment will be automatically added, so only scenarios that have the selected environment tag will run.
      • You can disable tests adding the tag @disable.