使用C#/ NUnit的并行测试的硒网格 [英] Selenium Grid with parallel testing using C#/NUnit

查看:137
本文介绍了使用C#/ NUnit的并行测试的硒网格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有与正在调用Selenium命令NUnit的写了几个单元测试。我有2 WIN2K3服务器设置框,一个是与2硒RC的运行以及电网硒枢纽。另一个盒子运行的是5硒RC的。所有这些都与集线器的Windows上运行的Firefox注册(保持简单)。在我的单元测试设置方法我已经得到它连接到集线器的主机名在4444端口。

I've got several unit tests written with NUnit that are calling selenium commands. I've got 2 win2k3 server boxes setup, one is running selenium grid hub along with 2 selenium rc's. The other box is running 5 selenium rc's. All of them are registered with the hub as running Firefox on Windows (to keep it simple). In my unit test setup method I've got it connected to the hub's hostname at port 4444.

在运行测试,他们只按顺序运行(如预期)。我已经做了很多的阅读NUnit的路线图以及它们是如何拍摄的并行测试能力。我见过很多指针在此期间使用PNUnit。然而,这似乎完全击败硒电网的目的。

When running the tests, they only run sequentially (as expected). I've done a lot of reading on NUnit's roadmap and how they are shooting for parallel testing abilities. I've seen lots of pointers to using PNUnit in the meantime. However this seems to completely defeat the purpose of the Selenium Grid.

有任何您成功地使用C#实现并行测试/ NUnit的连接到硒网格设置?如果有,请详细说明。

Have any of you successfully implemented parallel testing using C#/NUnit connected to a Selenium Grid setup? If so, please elaborate.

我在一个完全丧失这是如何会/可以,因为它现在已经存在(我使用的版本2.9.3使用NUnit工作)

I'm at a complete loss at how this will/can work using NUnit as it exists now (I'm using version 2.9.3)

推荐答案

不幸的是NUnit的无法并行运行的测试,所以你必须使用另一个亚军存档并行测试的所有优点与在C#

Unfortunately NUnit can not run tests in parallel, so you have to use another runner to archive all advantages of parallel testing with Selenium Grid.

项目:我使用加利奥亚军我的C#的测试,并在这里有例子硒电网

I using Gallio runner for my tests on c# and have examples here:

在平行拼命地跑测试:的http://代码。 google.com/p/design-of-selenium-tests-for-asp-net/

project on c# with tests runned in parallel: http://code.google.com/p/design-of-selenium-tests-for-asp-net/

说明:的 http://slmoloch.blogspot.com/2009/12/design-of-selenium-测试换aspnet_19.html

加利奥测试运行:的 http://www.gallio.org/

这篇关于使用C#/ NUnit的并行测试的硒网格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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