Skip to main content



      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 13:45 Go to next message
Eclipse UserFriend
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 02:13 Go to previous message
Eclipse UserFriend
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: Sat Aug 30 21:35:36 EDT 2025

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

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

Back to the top