1. preserve-order设为ture,methods执行顺序f3,f1,f2
2. preserve-order设为false,methods执行顺序f1,f2,f3
3. 默认是false,即methods执行顺序f1,f2,f3
<test name="TestSuite" preserve-order="true">
<classes>
<class name="com.testng.annotations.test.ClassName">
<methods>
<include name="f3"></include>
<include name="f1"></include>
<include name="f2"></include>
</methods>
</class>
</classes>
</test>
2. preserve-order设为false,methods执行顺序f1,f2,f3
<test name="TestSuite" preserve-order="false">
<classes>
<class name="com.testng.annotations.test.ClassName">
<methods>
<include name="f3"></include>
<include name="f1"></include>
<include name="f2"></include>
</methods>
</class>
</classes>
</test>
3. 默认是false,即methods执行顺序f1,f2,f3