Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Providing arguments based on the execution environments or making changes to the properties file, the same QualitiaOffline jar file can be used to execute tests in different environments.

...

Here is a quick overview of the browsers and platforms you can use for test executions using offline package.

 

Local

 

 

 


 Remote 

 

 

 

 

IE

Firefox

Chrome

Safari

 

IE

Firefox

Chrome

Safari

Windows

YesYesYes

 

 

YesYesYes

 

Linux

 

YesYes

 

 

 

YesYes

 

Mac

 

 

 

Yes

 

 

 

 

Yes

...

You can choose this option when you have distributed test environments where you want network to select a remote machine based on the availability.
Key Points to Know Before You Start
What is Hub?
The Hub is the main command center for managing which machines your test will run on. This is where you can see list of all the available nodes currently running in your grid environment (Remote Execution Environment).
What is Node?
A Node is a machine that you register with your Hub. By registering with Hub, the Hub now knows about the Node and any configuration information you used when you registered the node.
In order to perform remote execution through selenium grid, you need to configure Hub and Node in the network.
Creating Hub in the Network
A Hub can be created in the network following the steps mentioned below.

...

To configure settings for remote execution in selenium grid:

...

Sauce Labs is cloud environment which allows users to run tests in the cloud using different combinations of operating systems, browsers, and browser versions. In this environment all tests are executed on Sauce Labs VM. You can view the ongoing suite execution on Sauce Lab's Dashboard.
It is recommended to set ScreenCaptureMode value as Browser when the execution environment is Sauce or Remote.
You can set the value for FailStepOnBrowserScreenshotFailure as per the test case requirements (as true or false) to behave when the application under test generates any runtime Alert / Windows.
To know more about Sauce Labs visit: _+https://saucelabs.com/+_
Prior starting offline execution on Sauce Labs, ensure you have;

...

Notes:
If you are providing these values through command line, each value should be provided within double quotes if values are containing spaces; otherwise, the spaces in values will result in inconsistencies. For example, java -jar Qualitia-Offline-xxx.jar platform="Windows 8.1".
For more information on platforms, browsers, browser versions supported on Sauce, please refer https://saucelabs.com/platforms/.
If you do not set these values against platform in the Sauce.properties file, all your test cases will be executed on Linux. Also, if you do not specify the version, test cases will be executed using the latest version of browsers.
Figure 3.4.3 2

When the Application under Test is mobile application and you want to execute the offline package in the Sauce Labs environment, you need to configure the saucemobile.properties file accordingly.
To update the saucemobile.properties file:

  1. Open saucemobile.properties file.
  2. Set properties "custom_username", "custom_accesskey" to valid credentials with reference to Sauce Lab's active user account.
  3. Set "Browsername", "Devicename", "Platformversion", "appiumVersion", "deviceOrientation" and so forth to corresponding browser, device, platform, Appium, and Orientation of device you want your offline package to execute on. For example, if you want to execute your offline package on Samsung Galaxy S4 Device that has Android 6.0 operating system using Appium version 1.6.4, then set keys as follows:
    • Browsername=[Keep it blank for native application or specify the browser name for Web applications]
    • DeviceName=Samsung Galaxy S4 Device
    • Platformversion=6.0
    • appiumVersion=1.6.4
    • DeviceOrientation=Portrait

Users should not specify UDID when executing test cases on mobile devices on Sauce Labs.

Notes:
For more information about property possible values, refer the saucemobile.properties file.
You can use the Platform Configurator maintained by Sauce Labs to get the exact values of properties to set in the configuration files. Open Platform Configurator, select the properties based on which you want to configure your device on Sauce Labs and you will find the list of properties to be set in the configuration file at the end of page.
If you are providing these values through command line, each value should be provided within double quotes if values are containing spaces; otherwise, the spaces in values will result in inconsistencies. For example, java -jar Qualitia-Offline-xxx.jar platform="Windows 8.1".
For more information on platforms, browsers, browser versions supported on Sauce, please refer https://saucelabs.com/platforms/.
If you do not specify the version of browsers, test cases will be executed using the latest version of browsers.

...

  1. Download the Sauce connect zip on any machine in the network using following url:{_}https://saucelabs.com/downloads/Sauce-Connect-3.1-r32.zip_
  2. Unzip the folder.
  3. Open Command Prompt and navigate to the Sauce-connect.jar file followed by Sauce Username and Access key.
    For example, <Location of the jar file>java -jar Sauce-Connect.jar parvinm ab8fa4d8-8c1f-4904-8353-b6074fc744fb
  4. Press the Enter button.

...

For example; if you want to change the version of the browser to be used for test execution, remove the # sign located prior to the version and enter the version number against it.
Figure 3.4.5 1

Qualitia gives you provision to set these values for Selenium. Selenium has its own control on what value to use and how to reflect them in Execution Browser. For more information about Selenium Capabilities, refer following links:

Anchor
_Toc481846960
_Toc481846960
Reports

...