[英]How to stop a automated selenium test suite in tfs build. Tests keep running after cancelling Build.
I am using an setup where we use the Test Agent tasks to deploy a test agent to a target machine and invoke the tests on them. 我正在使用一个设置,我们使用测试代理任务将测试代理部署到目标机器并调用它们上的测试。 This will also allow us to run UI tests.
这也将允许我们运行UI测试。 All is well and good.
一切都很好。 But the issue is when I want to stop the test, I just cancel the build.
但问题是当我想停止测试时,我只是取消了构建。 The builds gets cancelled.
构建被取消。
I am happy with that. 我很满意。 But the issue is the Selenium test keeps on running even after the build is cancelled.
但问题是即使在构建取消后,Selenium测试仍会继续运行。
Is there something/ some process which I need to kill in the target machine so that the test comes to an abrupt STOP. 是否有某些/某些进程需要在目标机器中终止,以便测试突然停止。
Please help me in this scenario and many thanks for your information. 请帮助我在这种情况下,非常感谢您的信息。
Visual Studio Test using Test Agent Task is used in a Build-Deploy-Test (BDT) workflow. 使用Test Agent Task的Visual Studio测试用于Build-Deploy-Test(BDT)工作流程。 Cancelling an inprogress build/release with BDT tasks is not supported.
不支持使用BDT任务取消inprogress构建/发布。 If you do cancel, your subsequent builds may misbehave.
如果您确实取消了,您的后续版本可能会出现异常。
Cancelling an ongoing test run queued via BDT tasks is not supported, either. 也不支持取消通过BDT任务排队的正在进行的测试运行。
More information of Usage Error Conditions, please check this page: https://github.com/Microsoft/vsts-tasks/blob/master/Tasks/RunDistributedTests/README.md 有关使用错误条件的更多信息,请查看此页面: https : //github.com/Microsoft/vsts-tasks/blob/master/Tasks/RunDistributedTests/README.md
You can clear the option of Continue on error in Visual Studio Test using Test Agent Task. 您可以使用“测试代理任务”清除Visual Studio Test中的“出错时继续”选项。 If the build fails, no subsequent steps are run.
如果构建失败,则不会运行后续步骤。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.