Skip to content

YoussefH1998/BDD_Cypress_UIAutomation_TypeScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Title [BDD Web Automation]

Products web UI automation testing with Cypress , Typescript and gherkin.

Prerequisites

  • Knowledge of Cypress, TypeScript, gherkin & BDD
  • Any source-code editor downloaded that can run typescript programs VS Code

Built With

  • Cypress - The web framework used
  • TypeScript - The programming languag used
  • Gherkin - Programming language that is used by developers for the purpose of defining tests in the Cucumber platform
  • BDD - A software development process that Cucumber was built to support

Setup up your environment

  • Simply clone the project using the following command
git clone https://github.com/YoussefH1998/BDD_Cypress_UIAutomation_TypeScript

-Open the folder path in which the project was cloned in with VS code .

-Run the following command in the project terminal .

npm install

Running the tests

  • Simply in the project command line in VS code after setup up the project run
npx cypress open
  • Choose E2E, Then choose the feature file that you want and it will start the script.
  • Choose the browser file that scripts will run on
  • Choose the feature file that you want and it will start the script.

OR
  • Run the scripts directly from the command line
npm run cypress:run
// will run the scripts on the default browser which is electron in the headless mode

npm run cypress:run:chrome
// will run the scripts on the chrome browser in the headless mode

npm run cypress:smoke
// will run the tests that are tagged with @Smokes


npm run cypress:products
// will run the tests that are tagged with @Products

Test Execution Video Link

Test Execution Video - A video of test execution for e2e feature file in the project

Author

Youssef Hassan

About

This project is a products shop e2e web ui automation project coded in typescript and cypress following the BDD pattern

Resources

Stars

Watchers

Forks

Contributors