简体   繁体   English

使用NUnit使用C#的Selenium WebDriver:在一台机器上并行在多个浏览器上执行测试用例

[英]Selenium WebDriver with C# using NUnit: execute test cases on multiple browsers in parallel on single machine

I am new in Selenium testing. 我是硒测试的新手。 I want to run my multiple test cases on different browsers in single machine. 我想在一台机器上的不同浏览器上运行多个测试用例。

I have windows 7 operating system with Visual Studio 2010 installed. 我安装了Visual Studio 2010的Windows 7操作系统。 I am using Selenium IDE + WebDriver + NUnit. 我正在使用Selenium IDE + WebDriver + NUnit。

I want to run my test cases on different browsers in single machine in parallel. 我想在单台计算机上的不同浏览器上并行运行测试用例。

Let's say I have T1, T2 and T3 test cases, recorded in Selenium IDE, and IE 8, FireFox and Chrome Browser Install on my machine. 假设我有在Selenium IDE中记录的T1,T2和T3测试用例,以及在我的计算机上安装的IE 8,FireFox和Chrome浏览器。 I want to run T1 >> on IE 8, FireFox and Chrome Browser at the same time, in parallel. 我想在IE 8,FireFox和Chrome浏览器上同时运行T1 >>。

Please let me know 请告诉我

what are the software I need to install/configure to achive and how to do it. 我需要安装/配置哪些软件才能实现该功能以及如何执行此操作。

Step by Step details of configuration will really help me as I am new to Selenium and as well as to Open Source testing World. 关于Selenium和开放源代码测试世界的新手指南,详细的配置细节将对我有很大帮助。

Appreciate your quick reply. 感谢您的快速答复。

Thanks, AJain 谢谢阿Ja

Selenium Packages is needed to be installed in any of the technology you are using such as C#/Java/Delphi Selenium Packages必须安装在您使用的任何技术中,例如C#/ Java / Delphi

Install-Package Selenium.WebDriver
Install-Package WebDriverChromeDriver
Install-Package NUnitTestAdapter.WithFramework 
Install-Package WebDriver.IEDriver
Install-Package Selenium.Support

Install nunit Click on Download 安装nunit单击下载

Let me know if any other guidance is needed 让我知道是否需要其他指导

您可能要尝试使用BrowserStack- http: //browserstack.com/

暂无
暂无

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

相关问题 使用Selenium WebDriver和NUnit C#在Parallel中运行测试后,如何关闭多个浏览器窗口 - How to close down multiple browser windows after running tests in Parallel using Selenium WebDriver and NUnit C# 使用WebDriver,Nunit和C#测试具有不同选项的多个浏览器? - Testing multiple browsers with different options using WebDriver, Nunit and C#? 使用NUnit的Selenium WebDriver测试用例的单独类 - Separate classes for Selenium WebDriver test cases using NUnit 如何使用 selenium Nunit C# 为多个数据执行登录测试用例 - How to Execute login test case for multiple data using selenium Nunit C# Selenium WebDriver C# NUnit 测试并行失败 - Selenium WebDriver C# NUnit Tests Failing in Parallel 如何同时在多个浏览器上运行测试? 硒网格,C#,Specflow,NUnit - How do I run a test on multiple browsers at the same time? Selenium Grid, C#, Specflow, NUnit 在C#中使用Selenium WebDriver在每次测试后如何防止Nunit关闭浏览器 - How to prevent from Nunit closing browser after each test using Selenium WebDriver in C# 如何使用Nunit,C#-ThreadSafe驱动程序在单个类中运行并行测试方法 - How to Run parallel Test Method in single class using Nunit, C# -ThreadSafe Driver 使用C#与Selenium WebDriver和NUnit一起调试Visual Studio 2013 - Debug Visual Studio 2013 Using C# with Selenium WebDriver and NUnit 使用Selenium,NUnit和C#在多种浏览器类型上并行运行一项测试 - Running one tests on multiple browsertypes in parallel using Selenium, NUnit and C#
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM