Skip to content

API Automation using Groovy, Cucumber, HttpURLConnection and Gradle.

Notifications You must be signed in to change notification settings

fifernandez/api-automation-cucumber-groovy

Repository files navigation

api-automation-cucumber-groovy

API Automation using Groovy, Cucumber and Gradle.

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.

About

API Automation using Groovy, Cucumber, HttpURLConnection and Gradle.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published