This project uses Cypress for end-to-end testing of a login and logout flow.
- Clone this repo
- Install Dependencies -
npm install
- To open the Cypress Test Runner, use:
npm run cypress
- To run the Cypress tests headless, use:
npm run cypress-headless
This project uses Appium for automating mobile application testing.
- Clone this repo
- Install Dependencies using
npm install
- Install Emulator - Make sure you have Android Studio
- Install Appium using
npm install -g appium
- Install UIAutomator2 driver and dependencies using
appium driver install [email protected]
- To validate you have the driver installed run
appium driver list --installed
allowPermissions(driver):
Handle permission prompts.validateElementText(driver, elementId, expectedText):
Validate the text of an element.clickElementById(driver, elementId):
Click on an element by its ID.stopAppiumServer():
Stop the Appium server.
To run the Appium tests
- Make sure to open android emulator and name it (AVD Name):
Nexus_6P_API_33
or modify the configuraition file to the AVD name you wish to run the test on - Run the Appium Server using:
npm run appium-server
- Run the Appium Test (client) using:
npm run android-sanity
- Basic App Test: Validates elements' text and clicks on the "SKIP" button.
- commands.js: Utility functions.
- config.js: Configuration.