Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » SWTBot test case as Eclipse Product
SWTBot test case as Eclipse Product [message #482842] Fri, 28 August 2009 10:22 Go to next message
Artem Redkin is currently offline Artem RedkinFriend
Messages: 26
Registered: July 2009
Junior Member
I have an eclipse product that i want to test. I created plugin project with SWTBot and created a few test for my product. Can i export this test case as another eclipse product (containing my original product), so user could download some file, unizip, run and see the results of the tests in his specific environment?
Re: SWTBot test case as Eclipse Product [message #482950 is a reply to message #482842] Fri, 28 August 2009 16:33 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
On 28/08/09 3:52 PM, Artem Redkin wrote:
> I have an eclipse product that i want to test. I created plugin project
> with SWTBot and created a few test for my product. Can i export this
> test case as another eclipse product (containing my original product),
> so user could download some file, unizip, run and see the results of the
> tests in his specific environment?

Yes you can. Infact this is the recommended way to package things as well.

To elaborate, we have two product builds, one which we ship for
production, another which in addition includes a feature (or plugins)
containing the test plugins, pde, swtbot and everything else needed to
run the tests.

--
Ketan
http://studios.thoughtworks.com/twist | http://twitter.com/ketanpkr
Re: SWTBot test case as Eclipse Product [message #483098 is a reply to message #482950] Mon, 31 August 2009 07:00 Go to previous messageGo to next message
Artem Redkin is currently offline Artem RedkinFriend
Messages: 26
Registered: July 2009
Junior Member

> Yes you can. Infact this is the recommended way to package things as well.
>
> To elaborate, we have two product builds, one which we ship for
> production, another which in addition includes a feature (or plugins)
> containing the test plugins, pde, swtbot and everything else needed to
> run the tests.

Can you please provide more info on how to do it? Some examples or articles maybe.

Thank you!
Re: SWTBot test case as Eclipse Product [message #483317 is a reply to message #483098] Tue, 01 September 2009 04:11 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
On 31/08/09 12:30 PM, Artem Redkin wrote:
>
>> Yes you can. Infact this is the recommended way to package things as
>> well.
>>
>> To elaborate, we have two product builds, one which we ship for
>> production, another which in addition includes a feature (or plugins)
>> containing the test plugins, pde, swtbot and everything else needed to
>> run the tests.
>
> Can you please provide more info on how to do it? Some examples or
> articles maybe.


Here's partial contents from the .product files we use to build our
product. We use a feature based product, if you have a plugin based
product, you'll have plugins instead of features, but you'll get the idea.

twist.product (the product given to customers):

<features>
<feature id="com.thoughtworks.twist" version="1.1.0.qualifier"/>
<feature id="com.thoughtworks.twist.selenium" version="0.9.2.qualifier"/>
<feature id="com.thoughtworks.twist.tutorials"
version="1.1.0.qualifier"/>
.... some other features...
</features>

twist.dev.product. Comparing with above, you'll notice that this
contains our own test plugins+any other dependencies for tests):

<features>
<feature id="com.thoughtworks.twist.tests" version="1.1.0.qualifier"/>
<feature id="com.thoughtworks.twist" version="1.1.0.qualifier"/>
<feature id="com.thoughtworks.twist.selenium" version="0.9.2.qualifier"/>
<feature id="com.thoughtworks.twist.tutorials"
version="1.1.0.qualifier"/>

.... some other features...

<!-- these are dependencies for our tests -->
<feature id="org.eclipse.test"
version="3.5.0.r20080925-7P7VBiBcJ99q9VEN14C38"/>
<feature id="org.eclipse.swtbot" version="2.0.0.359-dev"/>
<feature id="org.eclipse.swtbot.eclipse" version="2.0.0.359-dev"/>
<feature id="org.eclipse.pde"
version="3.5.0.v20090123-7Z7_F8NFE-z0VXhWiu-8Qb95"/>

</features>

Our build scripts generate two binary products whenever we build -- one
for tests, one that ships to the customers.

--
Ketan
http://studios.thoughtworks.com/twist | http://twitter.com/ketanpkr
Re: SWTBot test case as Eclipse Product [message #484058 is a reply to message #483317] Fri, 04 September 2009 07:00 Go to previous messageGo to next message
Artem Redkin is currently offline Artem RedkinFriend
Messages: 26
Registered: July 2009
Junior Member
Thank you, i will try that!
Re: SWTBot test case as Eclipse Product [message #485048 is a reply to message #484058] Thu, 10 September 2009 11:23 Go to previous message
Eclipse UserFriend
Originally posted by: cedric.chabanois.entropysoft.net

I did a separate product for tests too (with my tests and swtbot included).

To launch tests from this product :
- I launch the test product
- I import the test plugin as a "Binary Project with Linked Content" from
the "plug-ins" view.
- I right click on the suite class and select "SWTBot test" from the "Debug
As" menu

I wondered if there was another (simple) way ...

C
Previous Topic:Select Tree Items Problem
Next Topic:Can I test Dialogs in swtbot
Goto Forum:
  


Current Time: Tue Mar 19 10:15:47 GMT 2024

Powered by FUDForum. Page generated in 0.03089 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top