如何在 Visual Studio 2015 中并行执行单元测试用例 [英] How to execute the unit test cases parallel in visual studio 2015

查看:44
本文介绍了如何在 Visual Studio 2015 中并行执行单元测试用例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是自动化测试的新手,并在 Visual Studio 2015 中使用 Selenium C#.我有 36 个测试用例,完成测试运行需要 38 分钟.为了减少测试时间,我正在寻找并行测试运行.在我的测试配置中,我使用了 MSTet.TestAdapter 和 MSTest.TestFramework.我搜索了相关主题,发现要添加运行设置文件.我添加了相同的但测试没有并行运行.任何人都可以帮助我解决我的请求或共享任何文件来实现我的请求.请帮我处理这个请求.

I am new to automation testing and using Selenium C# in Visual studio 2015. I have 36 test cases and it took 38 minutes to complete the test run. To reduce the test time i am looking for parallel test run. In my test configuration i have used MSTet.TestAdapter and MSTest.TestFramework. I have searched for related topics and found that to add runsetting file. I have added the same but the test not running parallel. Can any once help me on my request or share any document to achieve my request. Please help me on this request.

推荐答案

我认为您只需使用 VS 测试资源管理器中的并行运行测试"选项即可.

I think you just use the "run tests in parallel" option in the VS Test Explorer.

这篇关于如何在 Visual Studio 2015 中并行执行单元测试用例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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