To execute an Azure DevOps pipeline, you need an Azure Pipelines agent. The agent is a standalone program that runs your pipeline jobs on a physical or virtual machine.
This article focuses on what you need to run Ranorex tests from an Azure DevOps pipeline. For general agent topics, see the official Azure DevOps documentation.
Create a new Personal Access Token
- Go to User Settings > Personal Access Tokens
-
Create a PAT with Agent Pools (read, manage) scope only (clear all other scopes). For more information, go to Register an agent using a personal access token PAT.
-
Copy the new PAT somewhere safe.
Create or select an agent pool
To download an agent:
- In Azure DevOps, open Project settings > Agent pools > Add pool (or use an existing one):
- Organization settings (Azure DevOps Services)
-
Collection settings (Azure DevOps Server)
- Select an agent pool (for example, Default)
- Open the Agents tab and select New agent.
- Select:
- OS: Windows
- Architecture: x64 (recommended) or x86
-
Select Download and extract the .zip file to a folder of your choice.
Configure the agent
Configure the agent so it can connect to your Azure DevOps organization and listen for jobs.
- Open Command Prompt or Windows PowerShell (don’t use PowerShell ISE).
-
Go to the folder where you extracted the agent and run:
./config.cmd -
When prompted, configure the agent:
-
Server URL: Use your organization URL (Azure DevOps Services), for example, https://dev.azure.com/<your-organization>.
- Authentication type: Select PAT (Personal Access Token).
- Agent pool: Select the default local pool.
- Agent name / Work folder: Accept defaults or adjust as needed.
- Run as service: Select N (don’t run as a service). This guide assumes you’ll run the agent interactively (a common requirement for UI test execution).
- If prompted to start the agent now, select Y.
-
Start the agent
If you didn’t start the agent during configuration:
-
In the agent folder, run the following:
./run.cmd - You should see Listening for Jobs.
The agent starts, connects to Azure DevOps, and waits for jobs from your pipeline.