On this page, you’ll learn what Ranorex Agents are, how to install them, and how to configure them.
What are Ranorex Agents?
A Ranorex Agent is a standalone tool that simplifies and streamlines test execution on remote machines. The Agent is installed on the remote machine and communicates with a Ranorex Studio installation on the source machine, from which it receives tests and to which it reports results. This way, you can start tests on a remote machine directly from within Ranorex Studio.
Quick facts:
- You can install an Agent on virtual or physical machines.
- You can install one Agent per machine.
- Agents queue tests and execute them one after another.
You can deploy and execute tests on Agents in two ways:
- through the remote pad from within Ranorex Studio, from where you can manage all Agents and execute tests on them.
- through a command line interface.
Both possibilities are explained in Agent-based test execution.
Download and install Agents
The Ranorex Agent comes as a standalone tool with a separate installer. It isn’t included in the Ranorex Studio installation. You need to download it and install it separately on each remote machine you want to run tests on.
Download the Agent on a machine with Ranorex Studio:
-
On a machine with Ranorex Studio, from the Ranorex Studio menu bar click View > Remote. The remote pad opens.
-
Click Add Ranorex Agent.
-
Click Download Ranorex Agent.
-
The download archive opens in your default browser.
-
Click your Ranorex Studio version and download the file under Ranorex Remote Agent.
To install the Agent on a remote machine:
-
Transfer the downloaded installation file to the desired remote machine.
-
Run the installation file, accept the license agreement,and click Install.
-
Wait for the Agent to install. The Agent will start automatically once installation has finished.
-
Follow the instructions of the first-time setup.
Start Agents
By default, Agents start with Windows. You can also start Agents manually from the Start menu.
Agents normally run minimized to the system tray. You can open them from there.
Configure Agents
To configure Agents, click the button in the top-right corner of the Agent window:
-
Lets you change the Agent’s name.
The default name is MyAgent. The display name is shown in the title bar of the Agent window and in the remote pad in Ranorex Studio. In the above image, we’ve named it Ranorex Agent.
-
Opens the folder RanorexAgentData in the installation directory of the Agent. This is where Agent logs and configuration files are stored.
-
Starts the Agent with Windows.
-
Keeps the Windows user session active even when a remote desktop connection is ended or interrupted.
-
Keeps the Agent on top of all windows.
-
Quits the Agent.
Tags allow you to categorize Agents, so you can trigger runs not on a specific Agent, but on an Agent with one or more specific tags. This is particularly helpful when tests are triggered on Agents in a CI pipeline because it allows you to balance the workload better and ensure a particular test is run on a machine with certain properties.
For example:
- You have 5 Agents. 3 of them you tag with “midnight-job”, the other two are untagged.
- Now you want to run a midnight job. You run it from the command line with this tag.
- Ranorex Studio now searches for all Agents that have this tag and runs the test on the one with the fewest jobs.
To add tags to an Agent:
-
In the Agent, click Tags.
-
Click Add tags to agent.
-
Enter the tag and press Enter.
-
The tag appears in the Agent.