Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Create TestSuit(How to create testsuit in swtbot)
icon14.gif  Create TestSuit [message #518547] Thu, 04 March 2010 07:55 Go to next message
Ajay Tiwari is currently offline Ajay Tiwari
Messages: 9
Registered: February 2010
Junior Member
Can someone tell me how to create testsuit in swtbot when testcase are made in eclipse. I mean i do not won't to use ant.Smile
Re: Create TestSuit [message #518818 is a reply to message #518547] Fri, 05 March 2010 02:52 Go to previous messageGo to next message
Ajay Tiwari is currently offline Ajay Tiwari
Messages: 9
Registered: February 2010
Junior Member
I got how to do it

import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import org.junit.runners.Suite.SuiteClasses;

@RunWith(Suite.class)
@SuiteClasses({TestClass1.class,TestClass2.class})
public class AllTests{
}
Re: Create TestSuit [message #519566 is a reply to message #518547] Tue, 09 March 2010 05:44 Go to previous messageGo to next message
speedprincess is currently offline speedprincess
Messages: 5
Registered: February 2010
Junior Member
To Create a Testsuite in eclipse you should create a new JUnit Testsuite in a package, and then you add all the testclasse you has wrote before.

For example

@RunWith(Suite.class)
@SuiteClasses(TestCase1.class; TestCase2.test)
public class AllTests {
}


For Launching the test, you choose this testcase, and creates a new runconfiguartion, as type you takes swtbot test, and then you must choose you suiteclasse, and the other parameters in this dialog, Because they depend on your application, I can not say, whats the right parameters.

Ihope this helps you.

[Updated on: Tue, 09 March 2010 05:44]

Report message to a moderator

Re: Create TestSuit [message #520362 is a reply to message #519566] Fri, 12 March 2010 01:05 Go to previous message
Ajay Tiwari is currently offline Ajay Tiwari
Messages: 9
Registered: February 2010
Junior Member
Hi,

Thank you very mush for your suggestion.Now I am to create suite.
Previous Topic:Ant not getting environment on MacOSX when running within Eclipse
Next Topic:Pattern: How to measure UI response time?
Goto Forum:
  


Current Time: Thu Aug 28 21:31:49 EDT 2014

Powered by FUDForum. Page generated in 0.02710 seconds