如何使用C#在多个浏览器中同时运行Selenium测试用例 [英] How to run Selenium Test Cases at the Same Time in Multiple Browsers using C#

查看:539
本文介绍了如何使用C#在多个浏览器中同时运行Selenium测试用例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我有一个我无法思考的问题,所以只需要一个良好的开端。



我有一组selenium测试用例可以使用excel文件进​​行参数化。

这些测试用例可以在IE,FF,Chrome或Safari上运行,具体取决于哪个浏览器用户选择。



现在,我打算这样做:

我想在所有这四种浏览器中运行测试用例在同一时间和最后,我应该能够收集4个单独的结果集。



-----

I不能使用Selenium Grid,因为它只适用于Java(据我所知,直到现在我都知道了),我正在研究selenium for c#。



我可能是能够使用多线程但由于我对此知之甚少,我不知道如何做到这一点。



我希望很快得到答复。< br $>


谢谢和问候,

Vivek Sharma

解方案
在这一点上,你可以使用NUnit。使用Nunit,您可以同时运行多个浏览器。你可以观看视频如何在硒中使用Nunit,然后开始学习这些课程。


Hi,

I have a problem which I am unable to think through, so just need a head start.

I have a set of selenium test cases which can be parametrized using an excel file.
These test cases can be run on IE, FF, Chrome or Safari, depending on which browser user chooses.

Now, What I intend to do is this:
I want to run the test cases in all of these four browsers at the same time and at the end, I should be able to collect 4 separate result sets.

-----
I cannot use Selenium Grid as that works for only Java (as I understand from what I have read till now) and I am working on selenium for c#.

I might be able to use Multi-threading but since I dont have much knowledge of that, I dont see how I can do that.

I hope to get a reply soon.

Thanks and Regards,
Vivek Sharma

解决方案

at this point you can use NUnit . with Nunit you can able to run multiple browsers at same time . you can watch videos how to use Nunit in selenium then start following that courses .


这篇关于如何使用C#在多个浏览器中同时运行Selenium测试用例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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