Viper allows you'll to create and execute your mobile automation scripts with Appium. To start test automation with Viper, please install the following pre-requisite software
- Android Studio - https://developer.android.com/studio/
- Node JS - https://nodejs.org/en/
- Node JS Version of Appium - https://www.npmjs.com/package/appium
- Download and install EriBank.apk file in your mobile device. https://code.google.com/archive/p/eribank/downloads
Next connect your real device via USB and execute "adb devices" in command prompt. Get a note of the device name and update the wsDataMobile2.json file in the Data folder
All the data pertaining to your test scenario is placed in this file
Next you have to bring up the appium server by typing appium -a 127.0.0.1 in the command prompt.
Now lets go to the PageObjects_Mobile package where we have created the reusable page (screen) objects for the EriBank application.
Next you can also look at the Jason data driven capability where all the values are taken from the wsDataMobile2.json file in the Data folder.
Next look at the test scenario created which uses the mobile page objects and utility methods.
To execute the script in Viper framework Select the test case and select Run As > Test NG
Thereafter the sample test case will be execute on the real device via the Viper framework.
Please note
- All the reusable screen objects should be created in PageObjects_Mobile
- All the test cases should be created within the Test package
- All the data should be passed from Excel file or JSON file with the use of utility readers in the Utility package.
- Reporting can be added with Extent Report methods provided in ExtentReport package or automatically framework generates Allure reports.





No comments:
Post a Comment