These instructions will get you a copy of the project up and running on your local machine.
-
This project is for Learning
-
Using cypress-bdd-cucumber to express Test Cases (or Test Scenarios) in Cucumber format using Gherkin language.
-
Internet access
Install Cypress for Mac, Linux, or Windows, thenget started.
npm install cypress --save-dev
Cypress cucumber plugin need to be installed, completed guide can be access here.
npm i @badeball/cypress-cucumber-preprocessor
npm i @bahmutov/cypress-esbuild-preprocessor
npm install -D cypress-xpath
- Check out the code from this repository
Below is sample gherkin language that used for the Test Cases
Feature: Login to CURA Healthcare Service
Scenario: As a user I want to login to CURA Healthcare Service
Given the CURA Healthcare Service home page is displayed
When user login with valid credential username '<username>' and password '<password>'
Then dashboard page will be displayed
Examples:
|username|password|
|John Doe|ThisIsNotAPassword|