测试类未在Selenium中并行运行

时间:2019-12-05 07:04:20

标签: selenium testing parallel-processing testng testng.xml

我正在尝试在selenium中并行运行测试类.Chrome实例创建了3次,假设我给的线程数为3,但是只有一个实例在工作,其余实例无法正常工作。有人可以帮我解决问题吗

我已经创建了testng.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "https://testng.org/testng-1.0.dtd">
<suite thread-count="4" name="OETestCase" parallel="classes">
    <listeners>
        <listener
            class-name="com.dev2qa.example.testng.report.CustomTestNGReporter" />
    </listeners>
    <test name="AllOE testCase">
        <classes>
            <class name="SRS_ECOM_SMOKE_INT.Allison_ECom_Test" />
            <class name="SRS_ECOM_SMOKE_INT.Audi_Ecom_Test" />
            <class name="SRS_ECOM_SMOKE_INT.DA_ECom_Test" />
            <class name="SRS_ECOM_SMOKE_INT.Polaris_Ecom_Test" />
            <class name="SRS_ECOM_SMOKE_INT.Scoda_Ecom_Test" />
            <class name="SRS_ECOM_SMOKE_INT.Subaru_Ecom_Test" />

        </classes>
    </test>

</suite>

0 个答案:

没有答案