首页 文章

在在线TFBuild中为Selenium测试设置VM

提问于
浏览
0

编辑:我从these steps忽略了"Prerequisites for executing build definitions is to have your build agent ready, here are steps to setup your build agent, you can find more details in this blog ." . 我目前正在尝试在Azure VM上启动并运行该构建代理,并将报告回来 .

我正在关注these steps尝试通过我的Visual Studio Online TFbuild运行CD和Selenium测试 . 我've had some helpful hints after sending some feedback via email, but I'仍然无法通过文件复制步骤 .

  • 我创建了一个Windows 10企业版VM .

  • 我已经在我的构建测试机器中正确设置了ip地址,并且能够将RDP插入到机器中 .

  • 我've successfully (after several attempts) gotten Remote Power shell working (though I' m不是100%肯定的winrm s winrm / config / client '@') . 我的名字来自https:// {} .visualstudio.com / DefaultCollection / _admin / _AgentQueue或Build> edit build> General> Default Queue> Manage .

  • PS C:\ users \ cdd \ Desktop> winrm quickconfig WinRM服务已在此计算机上运行 . WinRM已经设置为在此计算机上进行远程管理 . 这似乎已经准备好了

  • 网络连接类型为公共时不支持PS远程处理 . 请检查http://blogs.msdn.com/b/powershell/archive/2009/04/03/setting-network-location-to-private.aspx .

  • 和echo "setting executionpolicy" powershell -command "& Set-ExecutionPolicy -executionpolicy unrestricted -force" echo "setting remoting" powershell -command "& Enable-PSRemoting -force"

这是很多细节,但我仍然坚持:

复制已启动 - ':5985'机器的复制状态':5985':'Failed'无法执行powershell脚本 . 有关错误的详细信息,请参阅以下日志 . 无法使用用户cdd连接到路径\ 进行复制 . 系统错误53已发生 . 找不到网络路径 . 欲了解更多信息,请参阅http://aka.ms/windowsfilecopyreadme

我有几个问题:

  • 我是否拥有正确的VM名称?

  • 您是否有关于如何让VM设置为允许FileCopy的步骤?

  • 我'm probably missing something else, I'我不熟悉PowerShell或获取此设置 . 在创建VM时,我可以尝试为我的cdd管理用户提供哪些路径?

enter image description here

1 回答

  • 0

    要将文件复制到Azure VM计算机,应使用VSO构建定义中提供的"Azure File Copy"步骤 . 它为您提供了访问Azure VM计算机的详细设置 .
    enter image description here

相关问题