[testng-dev] Issue with test ordering through factory. #560

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[testng-dev] Issue with test ordering through factory. #560

Mayank Arora
Hi 

I have reported a bug at gitHub as ( details as in subject ) but attaching the sample project (maven on eclipse) here as coldn't attach it with github.

Details:

Issue: The factory provided test class loses its test ordering when 
1. @Test(dependsOnGroups = {"init"}) // Used at class level.
2. @Test(groups = { "soap" }, dependsOnMethods = {"Test_1"})  //Used at method level.
A. Output of the (mvn clean install) with both above lines commented in Test3.java
---------------------------------
Test #1 with data: 19
Test #2 with data: 19
Test #3 with data: 19
Test #1 with data: 32
Test #2 with data: 32
Test #3 with data: 32
---------------------------------

B. Output of the (mvn clean install) with any/both above lines un-commented in Test3.java
---------------------------------
Test #1 with data: 19
Test #1 with data: 32
Test #2 with data: 19
Test #2 with data: 32
Test #3 with data: 19
Test #3 with data: 32
---------------------------------

Expected outcome: The ordering should remain as A. (All test methods executed for first object followed by second object )  


Please let me know in case more information is needed from my end.

Regards
Mayank Arora

--
You received this message because you are subscribed to the Google Groups "testng-dev" 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 http://groups.google.com/group/testng-dev.
For more options, visit https://groups.google.com/d/optout.

16_testNG_bug.zip (32K) Download Attachment