Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Jubula » How would I create a new action for Swing combo box?(New Test Case, Swing Combo box)
How would I create a new action for Swing combo box? [message #691057] Thu, 30 June 2011 16:01 Go to next message
Francois Genolini is currently offline Francois Genolini
Messages: 14
Registered: June 2011
Location: UK, Aberdeen
Junior Member
Hi,

How could I create a new test case to check that the selected item in a Swing Combo box matches the text that I want to check?

I can see that there is:

unbound_modules_concrete_[5.0] | Actions (basic) | Check | Combo Box | ub_cbx_checkSelectionOfEntry_byIndex [INDEX; SELECTED]

I would like to create a new test case called:

ub_cbx_checkSelectionOfEntry_byValue [TEXT; OPERATOR]

When I try to edit a clone of ub_cbx_checkSelectionOfEntry_byIndex there is no choice in Action Type for "Check Selection of Entry by Value".

Would Check Text work for this?

Is it possible to add my own Action Type for Swing components?
Re: How would I create a new action for Swing combo box? [message #691079 is a reply to message #691057] Thu, 30 June 2011 16:33 Go to previous messageGo to next message
Achim Loerke is currently offline Achim Loerke
Messages: 349
Registered: July 2009
Location: Braunschweig, Germany
Senior Member

Well, "Check Text" on "Component with Text" should work but doesn't. We'll look into this.

Adding actions to components is currently supported for Swing, SWT and RCP/GEF. Sorry HTML testers, we're still working on this.

To define actions one actually has to write Java code and edit some XML files. You can find details in the Extension Information archive referenced on the Jubula Documentation page.

- Achim
Re: How would I create a new action for Swing combo box? [message #691265 is a reply to message #691079] Fri, 01 July 2011 06:25 Go to previous messageGo to next message
Francois Genolini is currently offline Francois Genolini
Messages: 14
Registered: June 2011
Location: UK, Aberdeen
Junior Member
"Check text" of "Component with Text does work now.
I backtracked and tried again. No idea why it did not work first time round.
Re: How would I create a new action for Swing combo box? [message #691303 is a reply to message #691265] Fri, 01 July 2011 07:40 Go to previous message
Achim Loerke is currently offline Achim Loerke
Messages: 349
Registered: July 2009
Location: Braunschweig, Germany
Senior Member

I realized (while driving home yesterday) that I actually tested against an SWT application and in this context the "Check Text" didn't work. Obviously the Swing RC does things different.

- Achim
Previous Topic:Sync problems between forum and NNTP
Next Topic:How to start AUT agent with Eclipse Indigo and Jubula from the Market Place
Goto Forum:
  


Current Time: Wed Oct 22 15:47:10 GMT 2014

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

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