Please Help !!!! Few classes in testng.xml is not executing in the sequence

19 views
Skip to first unread message

Pradeep kumar

unread,
May 11, 2018, 9:53:04 AM5/11/18
to testng-users

Hi,


Iam facing one strange issue.
Iam keeping all test cases in testng.xml and keeping parameter preserve-order= true
but out of 15 test cases one of the test cases is present in the middle but it always executes at last.
can i get help from any one??

In that testng.txt file below class always executes at last. Can you guys help me iam struck with this issue.

 <class name="com.jamcracker.
testcases.customeManagement.TC007NetworkInterface"></class>

How am Running Test cases?
iam creating a build using maven then i use below command  to execute
java -jar <<Jar file name>>
testng.xml

sai charan

unread,
May 13, 2018, 5:40:40 AM5/13/18
to testng-users

Hi 

Can you add priority for @Test annotation and check?

Thanks
Sai
Reply all
Reply to author
Forward
0 new messages