Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Jubula » Access Swing components directly(Trying to have direct access to the swing components encapsulated)
Access Swing components directly [message #1734492] Wed, 08 June 2016 17:45 Go to next message
Eric rosen is currently offline Eric rosenFriend
Messages: 6
Registered: June 2016
Junior Member
Hi, I'm trying to perform some actions on specific components of my swing application from the client API. However, it seems like you can only interact with the AUT by using CAPs that encapsulate the components. For example, to access a button, you use

org.eclipse.jubula.toolkit.base.AbstractComponents.createGraphicsComponent(NewButton)

To create the button component that encapsulates your swing button. However, you can only do certain factory actions to this encapsulated component. I was wondering if there's any way to gain access to the reference component, or to somehow create my own custom actions that I can implement. So, rather than just using the .click method that is presented to us, I can make my own custom click method somehow by extending the CAP interface or something along those lines.

Thanks!
Re: Access Swing components directly [message #1734514 is a reply to message #1734492] Thu, 09 June 2016 06:13 Go to previous message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1613
Registered: July 2009
Senior Member
Hi Eric,

If I understand the question correctly, you'd like to add your own custom extensions to be used in the API.

We have documentation on writing extensions in the developer manual:
http://testing.bredex.de/files/content/software/documentation/developerManual/index.html

And examples in our git repository (in the namespace "org.eclipse.jubula.examples.extension.swing" - there are API extension examples there)
http://git.eclipse.org/c/jubula/org.eclipse.jubula.core.git/tree/

Hope that helps!
Alex
Previous Topic:How to execute headless mode in jubula?
Next Topic:Re: Storing text input component value in client API
Goto Forum:
  


Current Time: Thu Sep 12 20:22:51 GMT 2024

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

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

Back to the top