Table of Contents | ||||
---|---|---|---|---|
|
Execute Test Case on both Desktop Web & Mobile Web, without any modifications
Your web application test case can be executed on both Desktop web and Mobile web.
...
You can completely execute your test case on desktop web or mobile web or
You can execute some steps on desktop web and some steps on mobile web.
...
Executing complete test case on one of the platforms i.e desktop web or mobile web:
...
If you want to execute complete test case on mobile platform, Go to Qualitia Settings > Configuration Settings > Mobile > Select the Execute on Mobile Web check box.
If you want to execute complete test case on desktop platform, Go to Qualitia Settings > Configuration Settings > Mobile > deselect the Execute on Mobile Web check box.
Tip | ||
---|---|---|
| ||
Your UI object locators should be same across desktop web and mobile web. This ensures single object can be identified on both interfaces consistently. |
...
Executing test case partially on Desktop web and partially on mobile web:
The default web execution platform (Execute on Mobile Web) setting determines whether your test case is going to be executed on Desktop web or Mobile web.
Whenever you want to dynamically switch the execution platform within a test case, use SwitchWebExecutionPlatform(“DESKTOP”) or SwitchWebExecutionPlatform(“MOBILE”) action in test case / task step.
Along with SwitchWebExecutionPlatform, you will also need to use OpenURL(“URL”) action.
All the steps that appear after above 2 actions (viz. SwitchWebExecutionPlatform and OpenURL), will be executed on the platform you have specified in SwitchWebExecutionPlatform.
Refer to the following example to know the general workflow of switching web execution platform. You can use this action as per your requirements.
In above example, let's assume that default web execution platform configured is Desktop.
OpenURL action: This action opens specified URL in the Desktop browser specified in the config since our default web execution platform is Desktop.
Google Search Box - Click. The search box object will be clicked on the desktop browser
SwitchWebExecutionPlatform(“MOBILE”): This will let Qualitia know that you want to execute further steps on Mobile browser.
OpenURL: Specify the URL you want to open on mobile browser. In this example, we are using the same Google.com URL. You can use any URL as per your need. The specified URL will open in Mobile browser.
Google Search Box - Click. The search box object will be clicked on the mobile browser.
...
title | Tech Tip |
---|
...
Include Page | ||||
---|---|---|---|---|
|