- JavaScript
- Allure
- Junit
- Spec
- Mocha
-
Install Node
Run =>
brew install node
-
Install Appium
Run =>
brew install appium
-
Install Appium Dependecies
Run =>
npm i -g appium
-
Create Android Emulator
Run =>
$ANDROID_HOME/tools/bin/avdmanager create avd -n TestEmulator -d pixel --package "system-images;android-30;google_apis;x86"
-
Create iOS Simulator
Run =>
xcrun simctl list
( Note down the UDID of iOS v15.2 iPhone 12 mini. This UDID will be later used in Package Json scripts to invoke Simulator )
-
Clone the Repo from GitHub
Run =>
git clone https://github.com/Avinash-Kannan/webdriverio-supertest-framework.git
Run =>
npm install
-
You can configure Web Automation ( i.e., Browser, Parallel Test, Retries, Device Farms, Reporting etc ) as per needs by editing wdio.web.conf.js file.
-
You can configure Mobile Automation ( i.e., Android/iOS, Parallel Test, Retries, Device Farms, Reporting etc ) as per needs by editing wdio.android.conf.js and wdio.ios.conf.js files.
-
Web
npm run smoke-test-web
-
Mobile
npm run regression-test-android
npm run smoke-test-ios
-
API
npm run test-api
- using mochaOpts.grep
Prefix Smoke/Regression/Sanity/Custom tags to your Tests
Example :it('regression smoke : should be able to order product from swag labs')