Gerard Davison | 4 Jan 2012 11:44
Picon
Favicon

Re: About the usage of the abbot.


On 27 Dec 2011, at 05:50, xiaokun wrote:

> hi all,
>  
> I am new to abbot.
> I wonder if i could start two or more jars at one time with the costello. Because in some cases, i must do some
other operations with other to be tested tools. Or i may use another tool to check whether i works after the
main task.

Well you can always use a Call step to invoke any static method you should be able to use this to interact with
any other process. The expression step also allows you to so something similar.

> And just though to add classpaths to make it work or something else? but how to deal with the main method?

You could create an instance of URLClassloader and just use reflection to invoke the main method, the
expression step will do this with less effort. In particular Groovy is going to support late binding so
make this easier.

>  
> Also i want to know the usage of checkbow "threaded lunch".

typos? I don't quite get what you mean.

> May u can describe it steply, It will be helpful.
> Thank you!
>  
> ps: The document about the abbot is so limitted. what a pity.

Something we will work on, contributes are always great fully accepted.
(Continue reading)

xiaokun | 6 Jan 2012 08:48
Picon

How to get all components in the interface.

Hi all,


I want to get all the components (or the hierarchy? what the hierarchy really is? Is it a tree? ) in a view , and then store them in a tree or even a forest. I have read the abbot source code. But it is too complicated for me, and I still can't figure it out.

Now we have the runnable jar application and its main class. So how can I get what i want.? 

I really need ur help.

Best Regards,
Sean
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
abbot-users mailing list
abbot-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/abbot-users
Gerard Davison | 6 Jan 2012 10:44
Picon
Favicon

Re: How to get all components in the interface.


Well,

You could try AWTHierarchy.getDefault()
(http://abbot.sourceforge.net/doc/api/abbot/finder/AWTHierarchy.html) to get hold of the roots;
but that would only tell you about the components abbot has seen. Or you could use
java.awt.Frame.getFrames() and then call getComponents/getRootPane on the child elements as required.

Gerard

On 6 Jan 2012, at 07:48, xiaokun wrote:

> Hi all,
> 
> I want to get all the components (or the hierarchy? what the hierarchy really is? Is it a tree? ) in a view , and
then store them in a tree or even a forest. I have read the abbot source code. But it is too complicated for me,
and I still can't figure it out.
> 
> Now we have the runnable jar application and its main class. So how can I get what i want.? 
> 
> I really need ur help.
> 
> Best Regards,
> Sean
> ------------------------------------------------------------------------------
> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
> infrastructure or vast IT resources to deliver seamless, secure access to
> virtual desktops. With this all-in-one solution, easily deploy virtual 
> desktops for less than the cost of PCs and save 60% on VDI infrastructure 
> costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox_______________________________________________
> abbot-users mailing list
> abbot-users <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/abbot-users

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
abbot-users mailing list
abbot-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/abbot-users
Timothy Wall | 6 Jan 2012 11:53
Gravatar

Re: How to get all components in the interface.

The default hierarchy walker provided by AWTHierarchy.getDefault() will provide you with the means to
find all reachable components (that's what is used to display the hierarchy tree in the script editor).

It's still up to you to place the components found into a structure appropriate for your task.

On Jan 6, 2012, at 4:44 AM, Gerard Davison wrote:

> 
> Well,
> 
> You could try AWTHierarchy.getDefault()
(http://abbot.sourceforge.net/doc/api/abbot/finder/AWTHierarchy.html) to get hold of the roots;
but that would only tell you about the components abbot has seen. Or you could use
java.awt.Frame.getFrames() and then call getComponents/getRootPane on the child elements as required.
> 
> Gerard
> 
> 
> 
> On 6 Jan 2012, at 07:48, xiaokun wrote:
> 
>> Hi all,
>> 
>> I want to get all the components (or the hierarchy? what the hierarchy really is? Is it a tree? ) in a view ,
and then store them in a tree or even a forest. I have read the abbot source code. But it is too complicated for
me, and I still can't figure it out.
>> 
>> Now we have the runnable jar application and its main class. So how can I get what i want.? 
>> 
>> I really need ur help.
>> 
>> Best Regards,
>> Sean
>> ------------------------------------------------------------------------------
>> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
>> infrastructure or vast IT resources to deliver seamless, secure access to
>> virtual desktops. With this all-in-one solution, easily deploy virtual 
>> desktops for less than the cost of PCs and save 60% on VDI infrastructure 
>> costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox_______________________________________________
>> abbot-users mailing list
>> abbot-users <at> lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/abbot-users
> 
> 
> ------------------------------------------------------------------------------
> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
> infrastructure or vast IT resources to deliver seamless, secure access to
> virtual desktops. With this all-in-one solution, easily deploy virtual 
> desktops for less than the cost of PCs and save 60% on VDI infrastructure 
> costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
> _______________________________________________
> abbot-users mailing list
> abbot-users <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/abbot-users

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
abbot-users mailing list
abbot-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/abbot-users
Timothy Wall | 6 Jan 2012 14:17
Gravatar

Re: How to get all components in the interface.

Costello uses a custom AWTHierarchy which filters its own windows from the hierarchy.  If you have other
components that you don't want included, use the AWTHierarchy.filter() method to remove them from consideration.

AWTHierarchy.getDefault() simply uses Frame.getFrames() to establish the root(s) of the component hierarchy.

On Jan 6, 2012, at 8:11 AM, xiaokun wrote:

> I know that.
> 
> I just wonder how come the AWTHierarchy class know which app I was handling. There must exist some relation
between the  getDefault() method and the way of  starting the app.  Am I right?
> 
> so I want to know how to lunch the app properly so that  the AWTHierarchy can work well. Of course it is
independent  with the editor.
> 
> Thank you very  much~
> 
> Sean
> 
> 在 2012年1月6日 下午8:57,Timothy Wall <twall <at> users.sf.net>写道:
> you must launch the application, or the hierarchy will never be created.
> 
> you can use the AWTHierarchy class independently of the script editor.
> 
> you can also launch the app from a console, then type control-shift-F1 and the hierarchy will be dumped to
the console output.
> 
> On Jan 6, 2012, at 7:39 AM, xiaokun wrote:
> 
>> So, that means I must lunch the application with the 'costello' ( the method used?  ). And then the 
AWTHierarchy will get the hierarchy of the application which running in the visual costello?
>> 
>> 在 2012年1月6日 下午6:53,Timothy Wall <twall <at> users.sf.net>写道:
>> The default hierarchy walker provided by AWTHierarchy.getDefault() will provide you with the means to
find all reachable components (that's what is used to display the hierarchy tree in the script editor).
>> 
>> It's still up to you to place the components found into a structure appropriate for your task.
>> 
>> On Jan 6, 2012, at 4:44 AM, Gerard Davison wrote:
>> 
>>> 
>>> Well,
>>> 
>>> You could try AWTHierarchy.getDefault()
(http://abbot.sourceforge.net/doc/api/abbot/finder/AWTHierarchy.html) to get hold of the roots;
but that would only tell you about the components abbot has seen. Or you could use
java.awt.Frame.getFrames() and then call getComponents/getRootPane on the child elements as required.
>>> 
>>> Gerard
>>> 
>>> 
>>> 
>>> On 6 Jan 2012, at 07:48, xiaokun wrote:
>>> 
>>>> Hi all,
>>>> 
>>>> I want to get all the components (or the hierarchy? what the hierarchy really is? Is it a tree? ) in a view ,
and then store them in a tree or even a forest. I have read the abbot source code. But it is too complicated for
me, and I still can't figure it out.
>>>> 
>>>> Now we have the runnable jar application and its main class. So how can I get what i want.?
>>>> 
>>>> I really need ur help.
>>>> 
>>>> Best Regards,
>>>> Sean
>>>> ------------------------------------------------------------------------------
>>>> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
>>>> infrastructure or vast IT resources to deliver seamless, secure access to
>>>> virtual desktops. With this all-in-one solution, easily deploy virtual
>>>> desktops for less than the cost of PCs and save 60% on VDI infrastructure
>>>> costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox_______________________________________________
>>>> abbot-users mailing list
>>>> abbot-users <at> lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/abbot-users
>>> 
>>> 
>>> ------------------------------------------------------------------------------
>>> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
>>> infrastructure or vast IT resources to deliver seamless, secure access to
>>> virtual desktops. With this all-in-one solution, easily deploy virtual
>>> desktops for less than the cost of PCs and save 60% on VDI infrastructure
>>> costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
>>> _______________________________________________
>>> abbot-users mailing list
>>> abbot-users <at> lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/abbot-users
>> 
>> 
> 
> 

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
abbot-users mailing list
abbot-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/abbot-users
SourceForge.net | 25 Jan 2012 23:19
Picon

[Developers] No Component found with matcher failure...

The following forum message was posted by gsalsi at http://sourceforge.net/projects/abbot/forums/forum/168263/topic/4973154:

Hi,
I am having some problems with one of our gui unit tests getting the [quote]No
Component found with matcher  ….[/quote] failure.  Basically, our gui test
does the following:

1. Create a JPopupMenu menu with JMenu items and set the name of the JPopupMenu
to something like POPUP
2. Create a JButton component with an actionPerformed which shows the JPopupMenu
when clicked
3. Show the JButton component, using ComponentTestFixture.showFrame
4. Use the ComponentTester.actionClick to select the JButton
5. Use ComponentTestFixture.getFinder().find(new NameMatcher(“POPUP”)) to
find the JPopupMenu component

Now, when running in eclipse under windows OS, the junit test always passes
but when running on a linux server using a virtual display (we are using Xvfb
– X windows virtual frame buffer), the junit test will fail about 1 out of
10 times with the failure [quote]No Component found with matcher Name matcher
(POPUP)[/quote].  It is a very sporadic failure.

Does anyone know or have any ideas what is going on and how to fix a problem
like this?
We are currently using Abbot release 1.0.1.
Thanks for any help.
Gregg

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
abbot-users mailing list
abbot-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/abbot-users

Gmane