Priority of test case scenario run does not work

45 views
Skip to first unread message

user26

unread,
Jul 21, 2021, 8:32:36 PM7/21/21
to qaf users

Hello,

After upgrading QAF 3.0.1 and testNG v7+, test scenarios are not running as in order of priority/sequential  as written in .feature file. It works fine with qaf 3.0.1 and default version of tesNG v6.10 that comes with it.

is there any workaround that qaf may can support ?
Thanks.


cjayswal

unread,
Jul 21, 2021, 8:59:52 PM7/21/21
to qaf users
After TestNG 6.10 there are many things broken in later releases. That is one of the reason we continue supporting 6.10. TestNG-#2170 is one of them which is with 7.x versions and not previous ones.

Alternate is, you can try using  @Priority (com.qmetry.qaf.automation.testng.Priority). Actually in earlier releases of TestNG when priority was not in-built feature in testng, QAF was supporting it with @Priority  custom annotation.
બુધવાર, 21 જુલાઈ, 2021ના રોજ 05:32:36 PM UTC-7 વાગ્યે user26 દ્વારા આમ લખવામાં આવ્યું હતું:

cjayswal

unread,
Jul 21, 2021, 9:11:07 PM7/21/21
to qaf users
You can set class level and method level value for priority, using @Priority annotation. In order to set group priority you can set "groupOrder" parameter in xml configuration file providing group name in order of priority. Refer MethodPriorityComparator.

બુધવાર, 21 જુલાઈ, 2021ના રોજ 05:59:52 PM UTC-7 વાગ્યે cjayswal દ્વારા આમ લખવામાં આવ્યું હતું:

user26

unread,
Jul 22, 2021, 4:47:34 PM7/22/21
to qaf users

Thanks!we will try and see how it goes.
Reply all
Reply to author
Forward
0 new messages