问题
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:
- 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
- Install TestExecute on each of them
Is there a Template that one can create and run to Implement this ?
回答1:
The --unattended
option mentioned here should do it for you.
回答2:
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.
回答3:
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.
来源:https://stackoverflow.com/questions/60657944/azure-devops-preparing-self-hosted-test-agents