Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » SWTBot and Rich Text Editor
SWTBot and Rich Text Editor [message #644391] Fri, 10 December 2010 20:14 Go to next message
No real name is currently offline No real name
Messages: 2
Registered: December 2010
Junior Member
I am using SWTBot to see whether it will work for the automated testing requirement of my RCP application. Can someone please show me how to use SWTBot to test a Rich Text Editor field?

My current challenge is to get a value out a RTE to test whether the text in the box matches what I am expecting. The next step will be to enter new data in the editor. I have tried many methods and approaches, but I can't seem to get the text from the editor.

Thanks.
Re: SWTBot and Rich Text Editor [message #645404 is a reply to message #644391] Fri, 17 December 2010 04:32 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan Padegaonkar
Messages: 873
Registered: July 2009
Senior Member
I'm curious as to what a rich text editor is! Is it the same as styled
text? I've not heard very much about it and I'd be interested in adding
some support if it's very different from styled text.

Could you point SWTBot's Eclipse Spy view on it to get any more details,
or point me to some urls I can read up to understand more of the rich
text editor component ?

--
Ketan
ketan.padegaonkar.name | eclipse.org/swtbot | @ketanpkr

On 12/10/10 12:15 PM, sital33@yahoo.com wrote:
> I am using SWTBot to see whether it will work for the automated testing
> requirement of my RCP application. Can someone please show me how to use
> SWTBot to test a Rich Text Editor field?
>
> My current challenge is to get a value out a RTE to test whether the
> text in the box matches what I am expecting. The next step will be to
> enter new data in the editor. I have tried many methods and approaches,
> but I can't seem to get the text from the editor.
>
> Thanks.
Re: SWTBot and Rich Text Editor [message #646665 is a reply to message #645404] Wed, 29 December 2010 18:30 Go to previous message
No real name is currently offline No real name
Messages: 2
Registered: December 2010
Junior Member
Hi Ketan,

Thanks for your response.

The rich text editor allows you to style text in an editor. So, for example, you can make it bold or italize it.

http://www.eclipse.org/epf/composer_javadoc/org/eclipse/epf/ richtext/RichTextEditor.html

I am trialing SWTBot by testing a view that includes 10 rich text editors. I don't see how to navigate to the editor that has the text that I need to test.
Previous Topic:CheckboxTreeViewer and grayedChecked
Next Topic:Problem in running multiple swtbot in thread
Goto Forum:
  


Current Time: Sun Sep 21 16:24:13 GMT 2014

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

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