1
votes

What is the best way to create a list of Self-hosted agents in Azure Devops (In order to run Automated tests with Smartbear TestExecute) without doing all the steps manually ?

Let's assume that there will be 40-50 PCs running Windows 10 which have to be made an agent and linked with the Azure pipelines.

I'm looking for a way to avoid doing these steps 50 times:

  1. Create these agents manually by following all the steps here https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/v2-windows?view=azure-devops and then
  2. Install TestExecute on each of them

Is there a Template that one can create and run to Implement this ?

3
If you do not want to download package and configure self hosted agents manually, use the Rest Api Agents - Add, however, the request body of this api might be complex to impelement. Also, as suggested in the api doc,configure an agent using the agent download package should be a better choice, you might need to repeat it but it's easy to operate.Yang Shen - MSFT

3 Answers

1
votes

The --unattended option mentioned here should do it for you.

0
votes

For the purpose of automating your test environment, probably you can take a look at Ansible: win_package, Ansible extension

Haven't tried it myself, but maybe you could install the downloaded agent, run the PS scripts and then install the Smartbear TestExecute inside one playbook.

0
votes

You can try installing TestExecute in silent mode from the command line to avoid doing that manually. As for configuring agents, the test agent deployment task is now deprecated, so it looks like there's no way to skip doing that.