Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » error/warning marker "decorations"?
error/warning marker "decorations"? [message #664417] Fri, 08 April 2011 17:48 Go to next message
Eclipse UserFriend
Originally posted by: david.landry.gmail.com

Can SWTBot access error or warning markers? For example in the java
editor pane when there are errors (the little red "x" inthe left column.)

The app I'm testing (an eclipse plugin IDE for a specialized language)
also uses these types of "decorations" in the "Project Explorer" view
(similar to the "Package Explorer" view) by changing the icons used to
ones with little red "x"s in the lower left corner of each icon up the
tree. ... is it possible to determine information about those icons so I
can introduce an error in the source file, then check the Project
Explorer tree and see if the proper tree node icon is being used?

I'm guessing that if this is possible I'd have to have the developers
mark the change in icons explicitly with some changing property? But I
could be wrong.

Anyone doing anything like this?

Thanks
Re: error/warning marker "decorations"? [message #664462 is a reply to message #664417] Sat, 09 April 2011 03:59 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
The problem markers are not directly available however, if you can have
SWTBot look at the problem view for the markers and marker details (line
number, message etc) to do something useful.

You can also do IFile#findMarkers() to get a list of all markers
programatically.

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

On 4/8/11 10:48 AM, David Landry wrote:
> Can SWTBot access error or warning markers? For example in the java
> editor pane when there are errors (the little red "x" inthe left column.)
>
> The app I'm testing (an eclipse plugin IDE for a specialized language)
> also uses these types of "decorations" in the "Project Explorer" view
> (similar to the "Package Explorer" view) by changing the icons used to
> ones with little red "x"s in the lower left corner of each icon up the
> tree. ... is it possible to determine information about those icons so I
> can introduce an error in the source file, then check the Project
> Explorer tree and see if the proper tree node icon is being used?
>
> I'm guessing that if this is possible I'd have to have the developers
> mark the change in icons explicitly with some changing property? But I
> could be wrong.
>
> Anyone doing anything like this?
>
> Thanks
Re: error/warning marker "decorations"? [message #664940 is a reply to message #664462] Tue, 12 April 2011 13:57 Go to previous message
Eclipse UserFriend
Originally posted by: david.landry.gmail.com

Ketan Padegaonkar wrote:
> The problem markers are not directly available however, if you can have
> SWTBot look at the problem view for the markers and marker details (line
> number, message etc) to do something useful.
>
> You can also do IFile#findMarkers() to get a list of all markers
> programatically.
>
Thanks Ketan .. for this and the other answers you have provided.

Cheers
-Dave
Previous Topic:[ANN] New recorder and domain-language test tool based on SWTBot
Next Topic:Different test results when running headless SWTBot
Goto Forum:
  


Current Time: Fri Apr 19 01:58:40 GMT 2024

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

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

Back to the top