A new version of Qualitia Automation Studio for Web and Mobile 7.2.x is now available. We highly recommend you upgrade. Find more details here.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »


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.

  1. You can completely execute your test case on desktop web or mobile web or

  2. You can execute some steps on desktop web and some steps on mobile web.


  1. Executing complete test case on one of the platforms i.e desktop web or mobile web:

    1. 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.

    2. 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.

      Note

      Your UI object locators should be same across desktop web and mobile web. This ensures single object can be identified on both interfaces consistently.

  2. Executing test case partially on Desktop web and partially on mobile web:

    1. 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.

    2. 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.

    3. Along with SwitchWebExecutionPlatform, you will also need to use OpenURL(“URL”) action.

    4. All the steps that appear after above 2 actions (viz. SwitchWebExecutionPlatform and OpenURL), will be executed on the platform you have specified in SwitchWebExecutionPlatform.

    5. Refer to the following example to know the general workflow of switching web execution platform. You can use this action as per your requirements.

Qualitia Test Case

In above example, let's assume that default web execution platform configured is Desktop.

  1. OpenURL action: This action opens specified URL in the Desktop browser specified in the config since our default web execution platform is Desktop.

  2. Google Search Box - Click. The search box object will be clicked on the desktop browser

  3. SwitchWebExecutionPlatform(“MOBILE”): This will let Qualitia know that you want to execute further steps on Mobile browser.

  4. 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.

  5. Google Search Box - Click. The search box object will be clicked on the mobile browser.

Tech Tip

For each test case iteration, the current web execution platform value will be RESET TO DEFAULT. In this particular example, if you use second iteration, the web execution platform will be reset to default “Desktop”.


  • No labels