我的部分测试用例
@Test(priority = 1)
public void testRoles001_Post() {
}
/**
* Test Method: Post Scenario:Test new insert action with correct data,later
* for batch delete.
*/
@Test(priority = 2)
public void testRoles002_Post() {
}
但是junitreports显示的顺序不是如下所示
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated by org.testng.reporters.JUnitReportReporter -->
<testsuite name="com.test.rest.testcase.common.RolesRestTest" tests="14" failures="0" timestamp="3 Dec 2016 16:13:35 GMT" time="38.868" errors="0">
<testcase name="testRoles004_Post" time="2.596" classname="com.oracle.civic.test.rest.testcase.common.RolesRestTest"/>
<testcase name="testRoles002_Post" time="1.224" classname="com.oracle.civic.test.rest.testcase.common.RolesRestTest"/>
<testcase name="testRoles003_Post" time="0.764" classname="com.oracle.civic.test.rest.testcase.common.RolesRestTest"/>
<testcase name="testRoles001_Post" time="2.680" classname="com.oracle.civic.test.rest.testcase.common.RolesRestTest"/>
</testsuite>
有没有人知道如何按顺序制作它们?