QAS have provides capabilities to execute your mobile web test in real tests on device's browser which allows to let you to check how the website works in on real devices. For android we can run in chrome Android, the test can be run on Chrome browser and for iOS we , the test can be run on safari Safari browser. We can do it The execution is carried out with the help of appium. It's quite Appium which is similar to android Android and iOS native Native app execution.
So for that we have to do below necessary steps.
Table of Contents |
---|
Step 1. Start Appium
[A] If you are using Appium with CLI
...
Start Appium like this, else skip this step and move to Step 2.
We have start appium Start Appium with one param called chromedriver-executable. This This param take takes path of your chrome driver, which must be match with the Chrome version of on mobile's chrome.
Syntax:appium --chromedriver-executable /path/to/my/chromedriver
...
Note: chromedriver-executable is required only for android chrome Android Chrome execution. For iOS safari we don't any kind of drivers.
...
Step 2. Start
[B] If you are using Appium Desktop Application
Start the Appium desktop application. You can find three tabs: Simple, Advanced and Presets.
Go to Open the Advanced tab and at bottom the page you . You can find the Chromedriver Binary Path at the bottom. Choose your chromedriver file as per your chrome version of mobile device for android chrome.
...
Step 3. Now go to QAS and open mobile web test case which have some sample steps.
Follow the below steps as per screenshots. the Chrome version on the mobile for Android.
...
Step 2. Execute Mobile Web (Device)
1. Go to QMetry Automation Studio.
2. Open the mobile web test case with steps.
3. Select Execute > Mobile Web (Device) > Android.
...
Sample capabilities for Android
...
Chrome
Code Block |
---|
{ "platformName": "Android", "platformVersion": "", "deviceName": "emulator-5554", "noReset": true, "automationName": "UiAutomator2", "browserName": "Chrome", "fullReset": false, "autoWebview": false, "newCommandTimeout": "3000", "idleTimeout": "3000" } |
Sample capabilities for iOS Safari
Code Block |
---|
{ "platformName": "iOS", "automationName": "XCUITest", "deviceName": "iPhone XR", "fullReset": false, "noReset": true, "platformVersion": "12.1", "browserName": "Safari" } |
...