Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » More on EclipseSpy(How do you use the data gathered from EclipseSpy)
More on EclipseSpy [message #1014836] Tue, 26 February 2013 15:06 Go to next message
Herb Miller is currently offline Herb MillerFriend
Messages: 22
Registered: September 2011
Junior Member
This topic is along the same lines as the following topic:
http://www.eclipse.org/forums/index.php/m/778179/#msg_778179

I am using EclipseSpy to get information on the widgets, but I do not know how to use the information. Below is a sample of EclipseSpy output for something on one of the toolbars. Given this info, how would I "click" this widget?

Thanks,
Herb Miller
=================================
Location:
//Shell/-1//Composite/4//Composite/0//ToolBar/18

Layout Information:
ToolBar {}
Style: WRAP | HORIZONTAL | TRAIL | FLAT | LEFT_TO_RIGHT
Layout Data: null
Bounds: Rectangle {229, 26, 77, 22}


Children: 4
ToolItem {}
ToolItem {}
ToolItem {}
ToolItem {}

Siblings: 27
ToolBar {}: Layout Data: null
Composite {}: Layout Data: null
ToolBar {}: Layout Data: null
Composite {}: Layout Data: null
ToolBar {}: Layout Data: null
Composite {}: Layout Data: null
ToolBar {}: Layout Data: null
Composite {}: Layout Data: null
ToolBar {}: Layout Data: null
Composite {}: Layout Data: null
ToolBar {}: Layout Data: null
Composite {}: Layout Data: null
ToolBar {}: Layout Data: null
Composite {}: Layout Data: null
ToolBar {}: Layout Data: null
Composite {}: Layout Data: null
ToolBar {}: Layout Data: null
Composite {}: Layout Data: null
[*]ToolBar {}: Layout Data: null
Composite {}: Layout Data: null
Composite {}: Layout Data: null
CTabFolder {}: Layout Data: null
CTabFolder {}: Layout Data: null
CTabFolder {}: Layout Data: null
Sash {}: Layout Data: null
Sash {}: Layout Data: null
Sash {}: Layout Data: null

Parent Tree:
Composite {}[0]@
Layout: null
LayoutData: null
Composite {}[4]@
Layout: StackLayout
LayoutData: null
Shell {Plug-in Development ...}[-1]@
Layout: TrimLayout
LayoutData: null

Re: More on EclipseSpy [message #1014892 is a reply to message #1014836] Tue, 26 February 2013 16:56 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

On 02/26/2013 04:06 PM, Herb Miller wrote:
> This topic is along the same lines as the following topic:
> http://www.eclipse.org/forums/index.php/m/778179/#msg_778179
>
> I am using EclipseSpy to get information on the widgets, but I do not
> know how to use the information. Below is a sample of EclipseSpy output
> for something on one of the toolbars. Given this info, how would I
> "click" this widget?

EclipseSpy won't really help you to use SWTBot.
To use SWTBot, just make you TestClass implement SWTBotEclipseTestCase,
and use the bot field to find the widget you want using its label or
other useful attributes.
--
Mickael Istria
JBoss, by Red Hat
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
Re: More on EclipseSpy [message #1014962 is a reply to message #1014892] Tue, 26 February 2013 23:18 Go to previous messageGo to next message
Herb Miller is currently offline Herb MillerFriend
Messages: 22
Registered: September 2011
Junior Member
So will someone please tell me what EclipseSpy is good for. I would really like to know how to use it.
Thanks,
Herb Miller
Re: More on EclipseSpy [message #1015122 is a reply to message #1014962] Wed, 27 February 2013 14:24 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

On 02/27/2013 12:18 AM, Herb Miller wrote:
> So will someone please tell me what EclipseSpy is good for.

EclipseSpy is good for developing the Matchers inside SWTBot as it's an
easy way to get details about some widgets. It's, as far as I
understand, a good tool for SWTBot extenders and contributors, it's not
helpful for end-users.
Maybe you'll be more interested into this:
http://mickaelistria.wordpress.com/2013/01/08/whats-hot-for-swtbot/

--
Mickael Istria
JBoss, by Red Hat
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
Re: More on EclipseSpy [message #1015258 is a reply to message #1015122] Wed, 27 February 2013 22:09 Go to previous messageGo to next message
Herb Miller is currently offline Herb MillerFriend
Messages: 22
Registered: September 2011
Junior Member
Yes, that link was very good. The video did not come through, but I will try it later with another browser. I am anxious to try this Recorder/Generator. My guess is it will generate a couple of more topics Wink

Thanks,
Herb Miller
Re: More on EclipseSpy [message #1015615 is a reply to message #1015258] Fri, 01 March 2013 11:50 Go to previous message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

On 02/27/2013 11:09 PM, Herb Miller wrote:
> Yes, that link was very good. The video did not come through, but I
> will try it later with another browser. I am anxious to try this
> Recorder/Generator. My guess is it will generate a couple of more
> topics ;)

Actually this is quite new and we've not make as much efforts in general
usability as it would deserve. It will be included in next release (next
week hopefully). Then your feedback will be highly welcome to make this
tool better!


--
Mickael Istria
JBoss, by Red Hat
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
Previous Topic:How to capture error messages thrown by an Eclipse application using SWTBot ?
Next Topic:Scroll an eclipse view using SWT BOT
Goto Forum:
  


Current Time: Fri Apr 19 02:31:18 GMT 2024

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

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

Back to the top