You can execute the test cases using an offline package after configuring settings accordingly. This gives you the 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 the following two ways:
Table of Contents | ||
---|---|---|
|
...
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 You need to choose to execute Offline Package on a remote machine with specific details.
...
- Download the selenium-standalone-jar on the target machine where you want to execute test cases.
- Download the drivers corresponding to the offline execution browser (chromedriver, IEdriverServer, and so on) and store it in the same location where the selenium-stand-alone-jar is saved.
- Open the Command Prompt window and navigate to the location where offline jar is storedlocated.
- Do one of the following:
- If the execution browser is Iexpore and selenium sever standalone version is 2.xx.x, execute following command: java -jar selenium-server-standalone-2.45.0.jar - Dwebdriver.ie.driver="D:\Data\Testing\Apps\IEDriverServer.exe”.
- If the execution browser is Iexpore and selenium sever standalone version is 3.xx.x, execute following command: java -Dwebdriver.ie.driver="D:\Data\Testing\Apps\IEDriverServer.exe" -jar selenium-server-standalone-3.0.1.jar
- If the execution browser is Iexpore and selenium sever standalone version is 2.xx.x, execute following command: java -jar selenium-server-standalone-2.45.0.jar - Dwebdriver.ie.driver="D:\Data\Testing\Apps\IEDriverServer.exe”.
...
Once you download Selenium-stand-alone jar and browser drivers, you need you to change some settings in the qualitia.properties file in order to run Normal Remote Execution.
To configure settings as for Normal Remote Execution:
- Open the qualitia.properties file from the config folder of mapped execution profile of the offline package.
- Set the ExecutionEnvironment value as Remote.
- Set the RemoteURL value to a valid remote URL that is IP and port of remote machine.
For example: RemoteURL=http://192.168.25.123:4445
Multiexcerpt include macro | ||||
---|---|---|---|---|
|
...
Create Node and Register to Hub
Once a hub is created in the network, you can select multiple machines to act as its nodes. Registering nodes include the following steps.
- Download the Selenium-server-standalone jar file on Hub machine.
- Launch the command prompt and navigate to the location where Selenium-server-standalone jar file is saved.
- Execute command "java -jar selenium-server-standalone-2.xx.x.jar -role node–hub http://hubIP:4445/grid/register".
...
Configuration Settings
Prior to executing test cases in remote execution in the selenium grid, you need to configure settings accordingly. Here are some important points to keep in mind when configuring settings for remote execution in the selenium grid.
- Selenium server jar version used in Qualitia offline package and downloaded at remote machines including Hub and Nodes should must be the same all over.
- Java needs to be installed and configured in the computer’s environment path.
- Port number used for the hub is changeable and the default port number is 4444.
- As hub selects a node for execution at its own at run time, you cannot provide details for specific OS / Platform.
- To know more about how to setup Selenium grid hub and node it is , you recommend using the selenium grid links given below.
To configure settings for remote execution in selenium grid:
- Do in the following order listed:
- Open the
- Qualitia Offline Configuration manager.
- Select the Offline Suite
- Select the mapped execution profile.
- Set the ExecutionEnvironment value as remote to inform qualitia-offline.jar that offline package has to be executed on a remote machine.to Remote.
- Set the RemoteURL value to a valid remote URL that is IP and port of remote machine. For example: RemoteURL=http://192.168.25.123:4445
- Set the GridPlatform value to a valid platform where you want to execute test cases. For example: Set the GridPlatform=Win10
...