简体   繁体   English

如何在tfs构建中停止自动化的selenium测试套件。 取消Build后,测试继续运行。

[英]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.

相关问题 构建后运行自动验收测试的框架? - Framework for running automated acceptance tests after build? 如何使用TFS build 2015运行自动化硒测试? - How can i run automated selenium tests using TFS build 2015? 在Visual Studio版本中找出DLL的来源。 - Find out where DLL is coming from in Visual Studio build. ItextSharp 在 PC 版本中生成 0 字节的 pdf 文件。 在编辑器中工作 - ItextSharp generates pdf file of 0 bytes in PC build. Works in editor Admob 在 android 版本中不起作用。 在统一编辑器中完美运行 - Admob not working in android build. Works perfectly in unity editor 没有网络的LibMan阻止构建。 有本地后备选项吗? - LibMan without internet prevents build. Is there a local fallback option? Selenium测试无法在运行TFS 2018构建代理的构建计算机上与IE11一起运行 - Selenium test fails to run with IE11 on build machine running TFS 2018 build agent 错误:构建恢复了 NuGet 包。 再次构建项目以在构建中包含这些包。 想要查询更多的信息 - Error: The build restored NuGet packages. Build the project again to include these packages in the build. For more information 如何使用TFS构建设置中的Run Functional Test构建步骤在一组计算机上运行Selenium Test - How to run Selenium Test across a set of machines using Run Functional Test build step in TFS build setup TFS 2013构建:在多个构建代理上并行运行单元测试 - TFS 2013 Build: Running Unit Tests in Parallel on multiple build agents
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM