Running tests on remote browsers

Official Content

GXtest 4 supports Selenium-Grid to run your UI tests.

The first step that we must follow is to have a Selenium node listening for running tests over some IP/port. There are several ways to set up a Selenium node, you can use NPM, Docker, Homebrew and others, or you can just download the .war and launch it using Java. Note that is possible that you need administrator rights to launch the selenium standalone server.

For example,

Suppose that you are working on machine A(local) and you want to run a UI test in a remote browser in machine B (real or virtual). Firstly, you must to start the hub and the Selenium node in the machine B.  After that, you just have to use the following commands at the beginning of your UI test: 


Note, the <IP_machineB> value will depend on what kind of machine B. If the machine B is part of your local area network (LAN), the <IP_machineB> will be the IPv4. If the machine B is not part of your local area network, the <IP_machineB> will be the public IP.

It is important to check the correct hub port status, <hubPort> value should be open to access from machine A. When you launch the hub in the machine B, the <hubPort> value by default is 4444. 

A simple UItest example,