Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Jubula » How to identify the color of a text (in Styled Text) (How to identify the color of a text (in Styled Text) )
How to identify the color of a text (in Styled Text) [message #1755895] Thu, 09 March 2017 06:26 Go to next message
muthuk ponnusamy is currently offline muthuk ponnusamyFriend
Messages: 9
Registered: March 2017
Junior Member
i need to identify the color of an text in text editor,

example:

select * from my_table;

i want to validate the each and every word and their color as well.

Thanks in Advance....!!

Re: How to identify the color of a text (in Styled Text) [message #1756017 is a reply to message #1755895] Fri, 10 March 2017 07:23 Go to previous messageGo to next message
Eclipse UserFriend
Hi Muthuk,

what toolkit are you using for your AUT?

Best regards,
Kevin
Re: How to identify the color of a text (in Styled Text) [message #1758157 is a reply to message #1756017] Fri, 24 March 2017 05:53 Go to previous messageGo to next message
muthuk ponnusamy is currently offline muthuk ponnusamyFriend
Messages: 9
Registered: March 2017
Junior Member
RCP project tool Kit
Re: How to identify the color of a text (in Styled Text) [message #1758367 is a reply to message #1758157] Tue, 28 March 2017 07:31 Go to previous message
Eclipse UserFriend
Hi Muthuk,

to test this you would have to write an extension for Jubula which would call the getSelectionForeground() method of StyledText and compares its return value to the expected value. To get the color of a specific part of the text you would most likely have to use one of the Ranges methods [1]. This should be fairly simple when using the Extension wizard. For more information about Jubula Extension development see [2] and [3].

Best regards,
Kevin

[1] http://help.eclipse.org/neon/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fapi%2Forg%2Feclipse%2Fswt%2Fcustom%2FStyledText.html
[2] https://testing.bredex.de/files/content/software/documentation/developerManual/toolkitExtension/ch03.html
[3] https://testing.bredex.de/files/content/software/documentation/developerManual/extensionWizard/ch05.html
Previous Topic:Measure memory usage and/or memory leaks
Next Topic:Searching for AUT-Path-Parameter instead of AUT-Config
Goto Forum:
  


Current Time: Tue Apr 16 23:06:25 GMT 2024

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

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

Back to the top