English 中文(简体)
可能同时对一台机器进行 se测试的问题
原标题:Possible issue with running selenium tests on one machine concurrently

我有多个类似地点(同样的布局,仅有不同的数据),其中每一个地方都减少了湿用的菜单(在停用时消失)。

I am using Selenium 2 and WebDriver, and I have one selenium test case that basically do the mouse over and make sure each of the link in the drop down menu works.

我正在使用 se网,因此我拥有一个中枢和几个测试机器。

由于我有许多地点(约100个)需要测试,因此,我想使每个机器同时对多个地点进行测试。

我的关切是,如果网络司机试图在大约同时在多个浏览器上采取行动,那么现在只能有一个积极的浏览器? 只有积极浏览器才能采取行动。 如果存在问题,是否进行了任何工作?

最佳回答

我利用<代码>JUnitCore.runClasses(ParallelComputer.classes), SomeClass1.class, SomeClass2.class, SomeClass3.class);在机器上进行三次测试时,将通过测试的百分比从100%降至大约67%。 无。

好的部分——火ox实际上可以同时进行。 如果森林论坛的事件彼此之间发生延误,它们不会同时做同样的事,那么它就会做得更好。 其中一些失败发生在Louisboot间,因此,如果你能够尽量减少关闭和打开窗户的话。 但是,有时它根本就失败了。

如果你真的会利用节省的时间,那么就去做,将所有失败的测试记录下来,并在第一轮测试之后再次进行——这次是一次。

问题回答

视你检测的最终目标而定,你也可以解决这一问题,不使用“行动”类别,而使用“移动”点击,而是使用“网络司机”探测By-click”方法或“Javascript executor”方法。 在同时经营多个窗口时,可能会减少争议。 如果行动组在界定运动时完全使用本地电话,如“移至点”,则使用另一个浏览器,那么我会猜测,移动点可能被另一个窗口掩盖。 我确实不相信这一点,只是给你另一个尝试的想法。





相关问题
Javascript communication with Selenium (RC)

My Application has a lot of calculation being done in JavaScript according to how and when the user acts on the application. The project prints out valuable information (through console calls) as to ...

Running automated Web browser tests under Hudson

I m running Hudson for my automated builds and love it. I d now like to create automated Web browser tests using either WaTiN (preferred) or Selenium. As my Hudson runs as a Windows service (under ...

Using a Java library with Scala reserved words

I m using an external library written in Java (Selenium). One of the function calls has the signature type(String, String), and I keep getting compiler errors when trying to call it from Scala, that ...

Heightened privilege selenium browsers on Windows 7 (x64)

I make use of *firefox and *iexplore etc. within my selenium tests to get around the issue of self-signed SSL certificates on my local machine. Unfortunately, now that I ve moved from XP over to 7, ...

Selenium not working with Firefox 3.x on linux

I am using selenium-server , selenium rc for UI testing in my application . My dev box is Windows with FireFox 3.5 and every thing is running fine and cool. But when i try to run selenium tests on my ...

Selenium IDE: Incrementing values by 1 and 71

Currently I m incrementing a value called wert by 1 with the following code: getEval storedVars[ wert ]=${wert}+1; The value wert is something like 80401299. I want to add 1 to the value, if it ...

热门标签