Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » test a dialog in my rcp application
test a dialog in my rcp application [message #7682] Tue, 09 December 2008 15:29 Go to next message
Brice Laurel is currently offline Brice LaurelFriend
Messages: 72
Registered: July 2009
Member
Hi list,

I test a rcp application, but I don't have a control of dialog?

How can I access to button on a dialog?

bot..........button("Cancel").click();

I read on this page
( http://swtbot.sourceforge.net/releases/1.2.0/feature-list.ht ml) that
SWTBot also test dialogs.

Can I say that SWTBot test SWT and JFace components?
Re: test a dialog in my rcp application [message #7704 is a reply to message #7682] Tue, 09 December 2008 16:54 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Brice,

I'd encourage you to look at existing SWTBot tests to figure out the
usage of most API.

Although there is sufficient javadoc, the SWTBot tests are the best
documentation of how you can use SWTBot.

-- Ketan

On 9/12/08 20:59, Brice Laurel wrote:
> Hi list,
>
> I test a rcp application, but I don't have a control of dialog?
>
> How can I access to button on a dialog?
>
> bot..........button("Cancel").click();
>
> I read on this page
> ( http://swtbot.sourceforge.net/releases/1.2.0/feature-list.ht ml) that
> SWTBot also test dialogs.
>
> Can I say that SWTBot test SWT and JFace components?
>
>
>
Re: test a dialog in my rcp application [message #7831 is a reply to message #7704] Tue, 09 December 2008 17:35 Go to previous messageGo to next message
Joe Luebker is currently offline Joe LuebkerFriend
Messages: 36
Registered: July 2009
Member
What are some suggested places for getting existing SWTBot tests?

Thanks,
Joe

Ketan Padegaonkar wrote:
> Brice,
>
> I'd encourage you to look at existing SWTBot tests to figure out the
> usage of most API.
>
> Although there is sufficient javadoc, the SWTBot tests are the best
> documentation of how you can use SWTBot.
>
> -- Ketan
>
> On 9/12/08 20:59, Brice Laurel wrote:
>> Hi list,
>>
>> I test a rcp application, but I don't have a control of dialog?
>>
>> How can I access to button on a dialog?
>>
>> bot..........button("Cancel").click();
>>
>> I read on this page
>> ( http://swtbot.sourceforge.net/releases/1.2.0/feature-list.ht ml) that
>> SWTBot also test dialogs.
>>
>> Can I say that SWTBot test SWT and JFace components?
>>
>>
>>
>
Re: test a dialog in my rcp application [message #7891 is a reply to message #7831] Wed, 10 December 2008 00:02 Go to previous message
Ketan Patel is currently offline Ketan PatelFriend
Messages: 68
Registered: July 2009
Member
I don't know when the eclipse SVN is going to be ready, maybe Ketan can
provide more info, but you can always look at cod here for now:

This is for V2.0:
http://swtbot.svn.sourceforge.net/viewvc/swtbot/branches/jav a-1.5-api-spike/

Just look at any project that ends with test.
Previous Topic:Possible timing issues with opening shells and button clicks for the shell
Next Topic:Invoking SWTBot methods on non-UI threads
Goto Forum:
  


Current Time: Sat Jul 27 13:27:49 GMT 2024

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

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

Back to the top