在使用TestNG + Selenium时,我无法确保类的执行顺序。下面指定的顺序(在testng.xml中)不起作用 - > ClassTwo先执行,然后执行ClassOne。如何确保TestNG.xml中指定的顺序保留?
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="ABC" parallel="">
<test verbose="2" name="xyz" annotations="JDK" preserve-order="true">
<classes>
<class name="script.ClassOne"/>
<class name="script.ClassTwo"/>
</classes>
</test>
</suite>
如何确保TestNG.xml中指定的顺序保留?
蜜饯顺序为我工作..一个简单的测试。你能否发布你的代码并输出...... –
这仍然是坏的。这个问题的任何解决方案? – sebnukem