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.

...

Supported Environments and Configurations

Qualitia Offline Package is compatible to execute on Sauce Labs and Remote environments along with local environments. Depending on the desired environment the Qualitia.Properties file accommodates configurations as follows:

To execute offline package on

Configure Qualitia.Properties as

Local Machine

ExecutionEnvironment=local

Remote Machine

ExecutionEnvironment=remote

Sauce Labs

ExecutionEnvironment=sauce

...

...

Supported Platforms and Browsers

Qualitia Offline Package supports multiple platforms and browsers for test case executions and report viewing. Browser and platform support can be classified in two ways:

  • Support for Execution
  • Support for Report Viewing

...

  • Report Viewing

Supported Browsers and Platforms for Offline Executions

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

Executions on Virtual Machines:

 

BrowserStack

 

 

 


Sauce Labs 


 

 

 

IE

Firefox

Chrome

Safari

 

IE

Firefox

Chrome

Safari

Windows

YesYesYes

 

 

YesYesYes

 

Linux

 

 

 

 

 

 

YesYes

 

Mac

 

 

 

Yes

 

 

 

 

Yes

Anchor
_Toc438045677
_Toc438045677
Supported Browsers and Platforms for Report Viewing
Once test cases are executed, Qualitia displays reports using Internet Explorer (IE) browser on the local machine from where the execution is triggered. Following is the quick overview of the supported browsers that can be used for viewing reports on different platforms.
Note: Chrome is not supported for report viewing.

 

IE

Firefox

Chrome

Safari

Windows

YesYes

Not Supported

 

Linux

 

Yes

Not Supported

 

Mac

 

Yes

Not Supported

Yes

...

Offline Execution in Local Environment

The offline package can be executed in local environments exactly as it is executed traditionally. Change the ExecutionEnvironment value as local in the qualitia.properties file and start executing it.
To change configuration settings for executing tests in local environment:

...

Figure 2.2.2 2

Note: All the other configuration settings in the qualitia.properties file have to be done traditionally.
anchor
_Toc438045680_Toc438045680

Offline Execution and Report
You can execute offline package using the traditional method after the configuration settings are done.
For more information on execution of offline package, see section 2.2.2, Offline Package - Execution.
It uses browsers available on local machine for test case executions. For example, if you have chosen "Firefox" to be the execution browser and the local machine has Firefox v42, Qualitia continues execution using Firefox v42. After the execution is complete, test execution reports are displayed on the local machine.
Anchor

_Toc438045681_Toc438045681Execution using Browser Capabilities
You can execute test cases on remote environment using Selenium supported Browser Capabilities.
For more information about executing test cases using browser capabilities, see section 3.4.5, "Execution using Browser's Capabilities."

...

Offline Execution on Remote/Distributed Environment

You can execute the test cases using offline package after configuring settings accordingly. This gives you provision to trigger suite execution using any machine in the network. You do not need to move the offline package to different machines to execute it. You can do it in following two ways;

  • Normal Remote Execution
  • Remote Execution through Selenium Grid

...

...

Normal Remote Execution

This option can be used when you are aware of the remote machine details where you wish to execute your test cases. Please note that here you choose to execute Offline Package on a remote machine with specific details.
Qualitia uses the selenium-standalone-server-jar for test case executions on the target remote machine.
To run selenium-stand- alone jar:

...

For example: RemoteURL=http://192.168.25.123:4445
Figure 3.4.1 3

Anchor_Toc438045686_Toc438045686

Offline Remote Execution and Reports
You can execute offline package using the traditional method after the configuration settings are done.
For more information about remote executions, see section 2.2.2, "Offline Package - Execution."
It uses browsers available on local machine for test case executions. For example, if you have selected "Firefox" as an execution browser and the local machine has Firefox version 42, Qualitia continues execution using Firefox version 42. Execution Reports are displayed on the local machine after executing the test cases.
Execution using Browser Capabilities
You can execute test cases on remote environment using selenium supported Browser Capabilities.
For more information about executing test cases using browser capabilities, see section 3.4.5, "Execution using Browser's Capabilities."
Mobile Test Case Executions:
In order to execute mobile test cases on the remote machine, make sure that Appium server is up and running on the designated remote machine.
For more information about installing Appium Server, refer to the Qualitia Online Help.

...

.

Remote Execution through Selenium Grid

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.

...

  1. Download the Selenium-server-standalone jar file on Hub machine.
  2. Launch the command prompt and navigate to the location where Selenium-server-standalone jar file is saved.
  3. Execute command "java -jar selenium-server-standalone-2.xx.x.jar -role node–hub http://hubIP:4445/grid/register".

...

_Ref467507292_Ref467507292Figure 3.4.2 2

Note: You can bundle your IEServerDriver.exe or ChromeDriver.exe running while registering to Hub as shown in Figure 3.4.22.
Anchor_Toc438045690
_Toc438045690

Configuration Settings
Before executing test cases in remote execution in Selenium grid, you need to configure settings accordingly. Here are some important points to keep in mind when configuring settings for remote execution in selenium grid.

To configure settings for remote execution in selenium grid:

...

Figure 3.4.2 3

Offline Remote Execution and Reports
You can execute offline package using the traditional method after the configuration settings are done.
For more information about remote executions, see section 2.2.2, "Offline Package - Execution."
It uses browsers available on local machine for test case executions. For example, if you have selected "Firefox" as an execution browser and the local machine has Firefox version 42, Qualitia continues execution using Firefox version 42. Execution Reports are displayed on the local machine after executing the test cases.
Execution using Browser Capabilities
You can execute test cases on remote environment using selenium supported Browser Capabilities.
For more information about executing test cases using browser capabilities, see section 3.4.5, "Execution using Browser's Capabilities."
Mobile Test Case Execution on Nodes
In order to execute mobile test cases using selenium grid, make sure that Appium server is up and running on the designated node.
For more information about installing Appium Server, refer to the Qualitia Online Help.

...

Offline Execution on Sauce Labs

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:

...

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.

...

If you are executing test cases on iOS mobile devices using Sauce Labs, you need to configure settings in the iosdc.properties file accordingly.

  • I Anchor_GoBack_GoBackf If iOS device is 9.3.x and below, automationname should be Appium or
  • If iOS device is 10.0.x and above, automationname should be XCUITest.

...

...

Offline Execution on BrowserStack

BrowserStack is a cloud environment that allows running tests in the cloud using different combinations of operating systems, browsers, and browser versions. In this environment, all tests are executed on BrowserStack VM. You can view the ongoing tests execution on BrowserStack.
To know more about BrowserStack visit: https://www.browserstack.com/
Before you start offline execution on BrowserStack, make sure you have the following:

...


Once the qualitia.properties file is updated, you must configure the browserstack.properties file in order to execute offline package in the BrowserStack environment.

To update the AnchorOLE_LINK1OLE_LINK1 AnchorOLE_LINK2OLE_LINK2 AnchorOLE_LINK3OLE_LINK3 browserstack.properties file:

...

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

...