VSTS发布任务“运行测试”弃用 - 替换? [英] VSTS Release tasks "Run Test" deprecated - replacement?

查看:79
本文介绍了VSTS发布任务“运行测试”弃用 - 替换?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我正在使用VSTS,我目前正在发布编码的UI测试。但是使用的释放任务"Deploy Testagent"和和"运行测试"被标记为"已弃用"。作为替代,任务"VsTest"指的是"VsTest"。建议。

I'm using VSTS and I am currently running coded UI Tests during my release. But the used release tasks "Deploy Testagent" and "Run Tests" are marked as "DEPRECATED". As a replacement, the task "VsTest" is suggested.

但如果我没有错过任何东西,这不是真正的替代品,因为它不能做同样的事情。

But if I didn't miss something, this is no real replacement, because it cannot do the same thing.

目前,我在我的发布定义中执行以下操作:

Currently, I'm doing the following in my release definition:


  • 还原VM
  • 将人工制品复制到此VM
  • 部署TestAgent
  • 运行测试

因此,这意味着实际测试正在VM上运行,而不是在构建代理上运行。因此,该VM上没有安装VS,甚至不在域中。并且每次都会恢复到快照,因此我们可以确保测试总是找到相同的defind环境。

So, this means the actual test is running on a VM, not the build agent. So, there's no VS installed on that VM, it is not even in the domain. And it gets restored to a snapshot every time, so we can be sure the test always finds the same defind environment.

但是如果我理解了新的"VsTest",那么任务正确,它无法处理专用测试VM上的运行。相反,它希望在构建代理上运行,并安装完整的VS. 

But if I understand the new "VsTest" task correctly, it cannot handle runnning on a dedicated testing VM. Instead, it expects to run on the build agent, with the full set of VS installed. 

或者,我必须在我的测试VM上安装代理。但后来我必须找到一种恢复snapsot的新方法,因为代理无法自我恢复。我将安装(和维护)VS或尝试"VsTest平台安装程序"
任务预览。 

Or, I would have to install the agent on my testing VM's. But then I would have to find a new way of restoring the snapsot, as the agent cannot restore itself. And I would have ot install (and maintain) VS or try the "VsTest Platform installer" task preview. 

我给了最后一个想法一个快速旋转,但是"VsTest"始终有一个无效的搜索文件夹(看起来像构建代理的路径),因此无法找到测试程序集。所以,它不起作用...

I gave this last idea a quick spin, but "VsTest" always has an invalid search folder (looks like a path from the build agent), hence it cannot find the test assemblies. So, it does not work...


  • 是否有人更详细地说明了这个"VsTest"的信息。任务可以以类似的方式使用,然后不推荐使用"运行测试"。任务?
  • 有没有人设法得到"VsTest"?专注于"构建"的任务agent,nit用于构建但仅用于测试?

任何帮助表示赞赏,

Sebastian

Sebastian

推荐答案

嗨塞巴斯蒂安,

欢迎来到MSDN论坛。

请参阅您的说明,您的问题与TFS有关。据我所知,最好使用您之前的方式,您也可以重定向到这个适当的论坛:
https: //stackoverflow.com/questions/tagged/tfs 使用'tfs'标签开始一个新线程,以获得更专业的支持,感谢您的理解。

Refer to your description, your issue is about the TFS. As far as I know, it is better to use your previous way and you can also redirect to this appropriate forum: https://stackoverflow.com/questions/tagged/tfs to start a new thread with ‘tfs’ tag for a more professional support, thank you for your understanding.

祝你好运,

Sara


这篇关于VSTS发布任务“运行测试”弃用 - 替换?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆