简体   繁体   中英

How to exclude class in TestNG

I have a Test Suite called Test.XML. If i want to exclude any one class. How can i perform it. Please anyone can suggest me solution.

Here is the Test.XML :

<test name="test1">
    <classes>
        <class name="test.LoginOneReports" />
    </classes>
</test>
<test name="test2">
    <classes>
        <class name="test.OEPR_DefaultTab" />
    </classes>
</test>
<test name="test3">
    <classes>
        <class name="test.OEPR_InternalvsExternalTab" />
    </classes>
</test>

You can't explicitly exclude classes in TestNG.xml. Please refer to more detailed answer for question How to exclude class in TestNG .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM