简体   繁体   English

CodedUI-构建部署测试工作流程是否可以关闭测试代理计算机上的IE浏览器实例?

[英]CodedUI - Can build-deploy-test workflow close IE browser instance on test agent machine?

I am using build deploy test workflow to execute testcases on Lab environment-CodedUI. 我正在使用构建部署测试工作流在实验室环境CodedUI上执行测试用例。 Browser IE instance remains open after test execution is over. 测试执行结束后,浏览器IE实例保持打开状态。

I am thinking if I can add something to my build workflow, which send instructions on test agent machine to close that browser instance. 我在考虑是否可以在构建工作流程中添加一些内容,从而在测试代理计算机上发送指令以关闭该浏览器实例。 Is that possible? 那可能吗?

I execute testcases in bunch. 我一堆执行测试用例。 No testcase close the browser instance. 没有测试用例关闭浏览器实例。 They work on same browser instance to save login time. 它们在同一浏览器实例上工作以节省登录时间。 Hence I want to close browser once execution is over 因此,我想在执行结束后关闭浏览器

Regards, Gbhavsar 问候,Gbhavsar

You can use the inbuilt functionality of settings 您可以使用设置的内置功能

browserInstance.CloseOnPlaybackCleanup = true

or use a custom .bat file to close/kill all open IE/Chrome/FireFox processes in your post test script. 或使用自定义.bat文件关闭/杀死后测试脚本中所有打开的IE / Chrome / FireFox进程。

See https://blogs.msdn.microsoft.com/visualstudioalm/2012/11/08/coded-ui-test-why-does-application-close-after-each-test-in-visual-studio-2012/ 请参阅https://blogs.msdn.microsoft.com/visualstudioalm/2012/11/08/coded-ui-test-why-does-application-close-after-each-test-in-visual-studio-2012/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM