我正在尝试为我需要的每个驱动程序在sauce实验室中运行最小的套件。
我有一个类,看起来像这样:
class test_suite
class test < MiniTest::Test
def setup
setup stuff
end
#test suite
def test_1
end
def test_2
end
def teardown
end
end
end
问题是,当我用某个驱动程序运行测试时,它们工作得很好,但当我尝试运行两次测试时,在运行之间切换驱动程序时,测试只在最
我在src/test/resources/ feature /中有下面的特性文件(单独的特性文件),我想并行运行它们。比如:一个特性文件必须在chrome中执行,另一个特性文件必须在firefox中执行,就像前面提到的@标记名称一样。
Feature: Refund item
@chrome
Scenario: Jeff returns a faulty microwave
Given Jeff has bought a microwave for $100
And he has a receipt
When he returns the microwave
我有一个带有3 tests的类,我正在使用pytest来使用Selenium运行测试来执行UI操作。
class abc:
def test_1(self):
print("I am test_1 open browser and perform operations")
def test_2(self):
print("I am test_2 open browser and perform operations")
def test_3(self):
print("I am test_3 open br
我如何使用testNG和selenium或cucumber-JVM来运行cucumber特性?我是个新手,但经过研究后,我认为cucumber jvm对我来说不能并行工作,我还添加了surefire插件
现在我尝试用TESTNG测试我的testNg.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="run test in para