Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/billmeyer/saucedemo2020
https://github.com/billmeyer/saucedemo2020
Last synced: 22 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/billmeyer/saucedemo2020
- Owner: billmeyer
- Created: 2020-03-09T21:40:26.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-06-24T02:26:37.000Z (over 2 years ago)
- Last Synced: 2024-04-14T23:04:59.258Z (9 months ago)
- Language: Java
- Size: 961 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sauce Demo Test Suite
## Full regressions
To execute the full test suite, simply run:
$ mvn test
And each scenario will execute.## Smoke tests
Smoke tests can be run by specifying the `@smoke1` tag:
$ mvn clean test "-Dcucumber.options=--tags '@smoke1'"
Tags can be combined to further filter the set of tests run. For example, to run only the login smoke tests, run:
$ mvn clean test "-Dcucumber.options=--tags '@login and @smoke1'"
Similarly, to run the order smoke tags, run:
$ mvn clean test "-Dcucumber.options=--tags '@order and @smoke1'"
## Performance tests$ mvn clean test -Dtestng.file=testng-performance.xml
## Run tests across all platforms$ mvn clean test -Dtestng.file=testng-allplatforms.xml
## Scenario breakdown|Feature|Scenario|Smoke Test|Regression Test|End to End|
|---|---|---|---|---|
|login|Verify valid users can sign in|Yes|Yes|No|
|login|Verify locked out user gets locked out message|No|Yes|No|
|login|Verify invalid users cannot sign in|No|Yes|No|
|orders|Place a single item in the shopping cart|Yes|Yes|No|
|orders|Place multiple items in the shopping cart|No|Yes|No|
|orders|Validate Order Totals|No|Yes|No|## Tags
Tags are defined to allow execution of specific Features and Scenarios.
__Example__: Execute smoke tests for tests related to `orders`:
$ mvn test "-Dcucumber.options=--tags '@orders and @smoke1'" -f pom.xml
__Example__: Execute regression tests for tests related to `login`:
$ mvn test "-Dcucumber.options=--tags '@login and @regression1'" -f pom.xml