Hi,
This is really a JUnit question, nothing really to do with tellurium so you
might get a better answer on a JUnit related mailing list, however taking a
quick look at the JUnit APIs it looks like you could achieve the desired
behaviour by creating your own test runner that inherits from the Suite runner
and then override the runChild method to skip the test if a previous one has
failed.
You're next problem will then be ordering of the tests that are run, so you may
want to implement your own Sorter as well.
Regards,
Jonathan
On Feb 23, 2011, at 2:44 PM, ghanshyam baheti wrote:
> Hi,
>
> We are having two Testsuite classes to run tellurium tests.
> Below is first Testsuite which if this runs successfully then only another
> testsuite have to be executed. Is there any way to achive such dependency?
>
> import org.junit.runner.RunWith;
> import org.junit.runners.Suite;
> import com.org.app.webtests.AddSampleDataJUnitTests;
>
> @RunWith(Suite.class)
> @Suite.SuiteClasses({
> EnableEletronicSLAJUnitTests.class,
> AddSampleDataJUnitTests.class })
>
> public class SampleDataTestSuite{}
>
>
> Also I have seen herarechy of 'TelluriumJUnitTestCase' class that we
> extending in each test class. It didn't extending JUnit Testcase class at any
> level.
> Below approach is giving compatibilty issue...Is the above reason?
>
> public class Sample extends TestSuite {
> static public Test suite() {
> TestSuite suite = new TestSuite();
> suite.addTestSuite(AddSampleDataJUnitTests.class);
> return suite;
> }
> }
>
>
>
> --
> Thanks,
> Ghanshyam Baheti.
> -------------------------------------------------------------------
>
> --
> You received this message because you are subscribed to the Google Groups
> "tellurium-users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/tellurium-users?hl=en.
--
You received this message because you are subscribed to the Google Groups
"tellurium-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/tellurium-users?hl=en.