|How to ues the EclipseSpy view on an Application? [message #1011602]
||Tue, 19 February 2013 16:59
| Herb Miller
Registered: September 2011
I am not sure of the "nuts and bolts" of using the SWTBot EclipseSpy view. I can get it to open, and it appears to give me information about the IDE as a move the cursor over the Eclipse IDE.|
I would like to know how to use it to discover widgets on the RCP app I am trying to test. If I run the RCP App, and if I hover over Widgets in the RCP app, I get no results showing up in the EclipseSpy View. It seems that knowing about the widgets of the app I want to test is more important than the widgets in the Eclipse IDE.
Do I need to include the EclipseSpy as a dependency for my app under test? Do I need to embed something in the app to make it EclipseSpy aware?
Just a quick "How-To" for button pushes on using the EclipseSpy View would be helpful. I am using Indigo (3.7) and one of the latest SWTBot downloads.
My simple SWTBot test seems to work fine, but I need to know how to use the EclipseSpy View.
|Re: How to ues the EclipseSpy view on an Application? [message #1012024 is a reply to message #1011940]
||Wed, 20 February 2013 13:06
|| Mickael Istria
Registered: July 2009
Location: Grenoble, France
On 02/20/2013 03:47 PM, Herb Miller wrote:|
> My problem is that I do not know how to use EclipseSpy. If someone can
> tell me how to use it, I would be grateful. Surely it is not just for
> hovering over the Eclipse IDE?
I've never even looked at the EclipseSpy code but I guess it listen to
mouse move and get the control under the mouse and change the content
when it's a new control.
If it works with the IDE, I think it could work with any RCP
application: just install the plugin in your RCP app, open the
EclipseSpy view, and it should be all. If it's not working, it's most
likely a bug.
> For years, Visual Studio has had a tool called something-Spy (not sure
> of the name). You could use this tool to see the activity of almost any
> GUI widget that was displayed on the desktop. I assumed that EclipseSpy
> has this functionality, and I just do not know how to use it correctly.
The EclipseSpy is only intended to SWTBot UI, and most likely only
"spies on" the application that hosts it.
JBoss, by Red Hat
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
Powered by FUDForum
. Page generated in 0.08739 seconds