Azure devops - Preparing self hosted test agents

你说的曾经没有我的故事 提交于 2021-02-08 08:45:20

问题


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 ?


回答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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!