API Automation using Groovy, Cucumber and Gradle.
Job | Status | Report |
---|---|---|
Smoke | Allure Report | |
Regression | Allure Report |
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.
-
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.
- You can choose which scenarios you want to run.