Giter Club home page Giter Club logo

saucedemo2020's Introduction

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   

saucedemo2020's People

Contributors

billmeyer avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

gajendra108

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.