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

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Pradeep kumar

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>>

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.

testng.xml (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

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

sai charan

Hi 

Can you add priority for @Test annotation and check?

Thanks
Sai
On Friday, May 11, 2018 at 5:53:04 PM UTC+4, Pradeep kumar wrote:

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>>

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.