On Wed, Nov 25, 2009 at 1:05 PM, Harihara Vinayakaram <hvr
...@gmail.com> wrote:
> Technically the order of tests in testng.xml can change. But for now in a
> sequential flow this works . So you can write your testng.xml as
> <test .... >
> <include name="A" />
> </test>
> <test ...>
> <include name="B" />
> </test>
> and you can pass the appropriate testng.xml to your TestNG ant task
> etc.
> But beware that this is not fixed and can change as Cedric mentioned in a
> post some time back.
> Regards
> Hari
> On Wed, Nov 25, 2009 at 12:34 PM, Shantaram <svwaingan...@gmail.com> wrote:
>> Please suggest how i can implement the following requirement.
>> I have 3 @test methods A,B and C testing three tasks.
>> I want to test multiple test flows
>> eg
>> test 1 - run A -> run B -> run C
>> test 2 - run A -> run C -> run B
>> test 3 - run B -> run C -> run A
>> I want to write many such flows
>> I dont mind writing an xml for each flow but i should be able to do it
>> without changing the annotations in the java test code (needing re
>> compiling)
>> --
>> Regards,
>> Shantaram Waingankar
>> 9969035764
>> www.shantaram.co.nr
>> Twenty years from now you will be more disappointed by the things you
>> didn't do than by the ones you did do.
>> So throw off the bowlines. Sail away from the safe harbor. Catch the trade
>> winds in your sails.
>> Explore. Dream. Discover.
>> 2009/11/8 Cédric Beust ♔ <cbe...@google.com>
>>> On Sun, Nov 8, 2009 at 6:18 AM, shashank ( shantaram )
>>> <svwaingan...@gmail.com> wrote:
>>>> Is there a guarantee that multiple tests in a testng.xml file will be
>>>> executed in the order they are declared in the file ?
>>> No, the XML file only contains the list of classes to be analyzed by
>>> TestNG.
>>> If you need a specific ordering, you should use
>>> dependsOnGroups/dependsOnMethods.
>>> --
>>> Cédric
>>> --~--~---------~--~----~------------~-------~--~----~
>>> You received this message because you are subscribed to the Google Groups
>>> "testng-users" group.
>>> To post to this group, send email to testng-users@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> testng-users+unsubscribe@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/testng-users?hl=en
>>> -~----------~----~----~----~------~----~------~--~---
>> --
>> You received this message because you are subscribed to the Google Groups
>> "testng-users" group.
>> To post to this group, send email to testng-users@googlegroups.com.
>> To unsubscribe from this group, send email to
>> testng-users+unsubscribe@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/testng-users?hl=en.
> --
> You received this message because you are subscribed to the Google Groups
> "testng-users" group.
> To post to this group, send email to testng-users@googlegroups.com.
> To unsubscribe from this group, send email to
> testng-users+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/testng-users?hl=en.