Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
python中的Selenium并行浏览器测试_Selenium_Grid_Parallel Testing - Fatal编程技术网

python中的Selenium并行浏览器测试

python中的Selenium并行浏览器测试,selenium,grid,parallel-testing,Selenium,Grid,Parallel Testing,我和Selenium合作了一段时间,做了一些测试,非常棒。现在我已经创建了一个测试用例,我想同时在IE、Firefox和GoogleChrome上运行它。我单独运行了它,它们运行得很好,但我想知道是否有办法更改我的脚本并一起运行它们 我已经用一个集线器和三个遥控器(Firefox端口=5556,IE端口=5557和Chrome端口=5558)设置了网格。现在说到剧本,我安排了三名潜水员: def setUp(self): # Setting up the driver for Firef

我和Selenium合作了一段时间,做了一些测试,非常棒。现在我已经创建了一个测试用例,我想同时在IE、Firefox和GoogleChrome上运行它。我单独运行了它,它们运行得很好,但我想知道是否有办法更改我的脚本并一起运行它们

我已经用一个集线器和三个遥控器(Firefox端口=5556,IE端口=5557和Chrome端口=5558)设置了网格。现在说到剧本,我安排了三名潜水员:

def setUp(self):
    # Setting up the driver for Firefox
    self.driverFF = webdriver.Firefox()
    ...

    # Setting up the driver for IE
    self.driverIE = webdriver.Ie()
    ...

    # Setting up the driver for IE
    self.driverCh = webdriver.Chrome()
    ...
然后我创建了三种不同的方法,并对每个驱动程序运行它们。我还没有测试过它,但我想知道:有没有一种有效的方法可以做到这一点


提前谢谢

看看Selenium Grid 2文档,它应该会对您有所帮助。我希望运行并行测试,并偶然发现了这些指南

在这里:

在这里:

Riaz

可能的重复