Please suggest on TestSuite conditional execution

3 views
Skip to first unread message

ghanshyam baheti

unread,
Feb 23, 2011, 8:44:16 AM2/23/11
to Jian Fang, tellurium-...@googlegroups.com, tellurium-users"
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.
-------------------------------------------------------------------
Reply all
Reply to author
Forward
0 new messages