This is a test automation framework to run User Interface test cases on SensoryNode mobile application
- Install the LTS version of NODE.js
- Install Appium on a local machine here
- Setting up Android and iOS on a local machine here
- Place the .app and .apk files here
- For IOS Read Devices only, Install Webdriver Agent either using Appium or Github-WebdriverAgent
- For complete manual instructions follow this doc - Instructions.pdf
- Clone git repository -
git clone {URL}
- Go to the project folder and install dependencies -
npm install
Execute the following commands
- IOS
npx wdio test-configs/ios.conf.js
located at ios.conf.js - Andriod
npx wdio test-configs/android.conf.js
located at android.conf.js
- IOS
npx wdio test-configs/ios.conf.js --spec ./src/tests/landing.test.js
- Andriod
npx wdio test-configs/android.conf.js --spec ./src/tests/landing.test.js
Open two instaces of appium server on any available ports such as
appium -p 6000
appium -p 7000
npx wdio test-configs/parallel.conf.js
BROWSERSTACK_USERNAME={Your_username} BROWSERSTACK_ACCESS_KEY={Your_access_key} npx wdio test-configs/browserstack.conf.js
This framework follows the concepts of page object model.
- All the test files are located in src/tests folder such as landing.test.js
- All the page object files are located in src/pages folder such as login.page.js
- All the test data files are located in src/resources folder such as test_data.js
- All the utilities files are located in src/utilities folder such as common.utils.js
- All the configs files are located in test-configs folder such as ios.conf.js
execute allure open
- WebdriverIO:
7.16.6
- Appium:
1.22.0
- Allure:
7.16.6
- browserstack-service:
7.16.6
- mocha:
7.16.6
- chai:
4.3.4