[E-Book] Unlock infinite possibilities in your supply chain with AI
[E-Book] Home Services in 2020 and the changing role of logistics
[Whitepaper] Captive vs Outsourced Fleet: Math behind Transportation and Distribution
--
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 testng-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/testng-users/6c9e6d8d-dc11-468f-b45f-5787751834a9n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/testng-users/c69fb516-db65-4574-939b-bda7be8b364dn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/testng-users/CAL8AEt0FVNQ84oEJ%3DkDr%2BNW5DFdzBLo8hHifCwhPvA4FfKAR4A%40mail.gmail.com.
NisargWhy dont you show an example of what your ask looks like. Feel free to make it as elaborate as you can (using sysout statements ofcourse) and also include a suite xml file.Thanks & Regards
Krishnan Mahadevan
"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/My Technical Scribblings @ https://rationaleemotions.com/
On Wed, Oct 21, 2020 at 8:39 PM Nisarg Dave <nisargd...@gmail.com> wrote:
Nope. Requirement is completely different.What I need is a test flow class having test methods should execute test cases. Test cases which are important fails (for which there is no need to move further if fails) execution should skip remaining test cases.And if few test cases which are not so important (can fail and I don't need to skip the remaining).But in both the cases order should be maintained.
I know this is bit tricky. Please advise.
Regards,
Nisarg
-----------------------
On Wed, Oct 21, 2020, 7:48 PM Aliasger Kiranawala <alia...@locus.sh> wrote:
I mean each test should seed its own test data and configs. For example if there is a login required each test should login and logout on its own. It should not be like login in test A and make test B dependent on A that after login perform x steps.
On Wednesday, October 21, 2020 at 7:42:01 PM UTC+5:30 nisargd...@gmail.com wrote:
I didn't get. Can you please elaborate how that would work?
Regards,
Nisarg
-----------------------
To view this discussion on the web visit https://groups.google.com/d/msgid/testng-users/CANikZLkrz%3DSJ9bn730KkKckVzxqAQ6w1e8Zq5HuoeYkJ%3Dx_k3w%40mail.gmail.com.
Nisarg,
IMO, ordering is just a side effect of dependsOnMethods
TestNG first builds the execution graph depending on the order specified via dependsOnMethods and on the resulting list of methods to be executed, it then sorts based on priority. But still dependsOnMethods is what will get honoured.
So, I would suggest that you don’t try to mix both of these.
Why can’t you just segregate the tests into two separate classes (one class which houses all dependsOnMethods and the other class which houses all the priority driven tests)
Thanks & Regards
Krishnan Mahadevan
"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.com/
To view this discussion on the web visit https://groups.google.com/d/msgid/testng-users/47c189c9-0f5c-4f0c-a99c-c324d3e89fban%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/testng-users/750F667C-700B-4803-BE27-B11AF6A77177%40gmail.com.
Like I said before, mixing these two is perhaps going to give you unreliable results. You can give it a try. But I don’t know what will be the expected behavior (especially if you end up assigning a lower priority to a method that as an upstream dependency)
To view this discussion on the web visit https://groups.google.com/d/msgid/testng-users/CAL8AEt0ib7bB07i-%3DnVGDB-ohxEBbCBg546p%2BSqCtKr0w5TCog%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/testng-users/C35879E1-B67F-45D8-8C41-842E2D3F9947%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/testng-users/b46356f2-f05f-4d3a-900f-78261c635e03%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/testng-users/0108b447-ac2b-4108-9b1f-b48d378a92e8n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/testng-users/CANikZLnM8muW1xaVk3PZievzWQabk_33kOvcomb3xYKVjRNS2Q%40mail.gmail.com.