QAS provides capabilities to execute your mobile web tests on device's browser to let you check how the website works on real devices. For Android, the test can be run on Chrome browser and for iOS, the test can be run on Safari browser. The execution is carried out with the help of Appium which is similar to Android and iOS Native app execution.
Start Appium with one param called chromedriver-executable. This param takes path of your chrome driver, which must match the Chrome version on mobile.
Syntax:appium --chromedriver-executable /path/to/my/chromedriver
Example: appium --chromedriver-executable D:\mobileweb\chromedriver.exe
Note: chromedriver-executable is required only for Android Chrome execution.
Start the Appium desktop application. You can find three tabs: Simple, Advanced and Presets.
Open the Advanced tab. You can find the Chromedriver Binary Path at the bottom. Choose your chromedriver file as per the Chrome version on the mobile for Android.
1. Go to QMetry Automation Studio.
2. Open the mobile web test case with steps.
3. Select Execute > Mobile Web (Device) > Android.
{ "platformName": "Android", "platformVersion": "", "deviceName": "emulator-5554", "noReset": true, "automationName": "UiAutomator2", "browserName": "Chrome", "fullReset": false, "autoWebview": false, "newCommandTimeout": "3000", "idleTimeout": "3000" } |
{ "platformName": "iOS", "automationName": "XCUITest", "deviceName": "iPhone XR", "fullReset": false, "noReset": true, "platformVersion": "12.1", "browserName": "Safari" } |
Once you defined the capabilities on the Capabilities window, click Start to initiate the execution on device.