Skip to main content



      Home
Home » Eclipse Projects » Eclipse Scout » Set name of Swing component from Scout(Set name of Swing component from Scout)
icon3.gif  Set name of Swing component from Scout [message #1230894] Mon, 13 January 2014 05:36 Go to next message
Eclipse UserFriend
We are developing a scout application and try to setup GUI testing with Jubula.

We have deployed our client application as Swing.

Since Jubula is capable of finding components by Swing name, we were wondering if there is a way to set the name of the component from the Scout workspace.

Or if there is a way to set a component name from scout source.

Thanks in advance,

Wouter

[Updated on: Mon, 13 January 2014 05:41] by Moderator

Re: Set name of Swing component from Scout [message #1231112 is a reply to message #1230894] Mon, 13 January 2014 16:22 Go to previous messageGo to next message
Eclipse UserFriend
As you might know we have given a talk last year at the EclipseCon 2013.
Testing a Scout Application with JUnit and Jubula

Giving a name to the Swing component is something we want to investigate. There is no solution out of the box yet.

You will be facing the Unique ID problem. Basically we wanted to use the Simple Name of the Class (in the Scout Model) but this is not enough. Think of:
-- MainBox
---- GroupBox1
------ NameField
---- GroupBox2
------ NameField

There is also a problem if you inject fields at runtime.

To be sure to have a unique ID, we want to add the concept of unique id for the next milestone release (planned for Luna M5):
https://bugs.eclipse.org/bugs/show_bug.cgi?id=420626

We will be able to use this ID to instrument the swing renderer of Eclipse Scout for Jubula.
Re: Set name of Swing component from Scout [message #1231688 is a reply to message #1231112] Wed, 15 January 2014 02:48 Go to previous messageGo to next message
Eclipse UserFriend
Thanks for you answer. It's clear for the moment.

For your information I crossposted this question on the Jubula forums.

The link to their topic is:
http://www.eclipse.org/forums/index.php/m/1231687/
Re: Set name of Swing component from Scout [message #1512219 is a reply to message #1231688] Mon, 15 December 2014 10:07 Go to previous message
Eclipse UserFriend
I never took the time to comment on the improvements that were added with luna in this domain.

You now have the possibility to define field ids in the Scout Model and to use these ids for the Jubula tests.

I have updated the Minifigcreator Demo Application (incl. the Jubula Test Suite).
I have demonstrated the new feature during our first Scout User Group Meeting. Slides are available.

In particular the feature introduced with luna:
index.php/fa/20231/0/

If you need more information, feel free to continue the discussion.

We have discovered a bug with Swing Rayo in the Luna Release (see Bug 447765). This is fixed with Mars M3 (if you need a backport to Luna SR2, please let us a comment in the Bugzilla - otherwise we will not do the backport).

[Updated on: Mon, 15 December 2014 10:13] by Moderator

Previous Topic:Blue backgroud forms
Next Topic:show data in table ??
Goto Forum:
  


Current Time: Thu Jul 10 03:20:57 EDT 2025

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

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

Back to the top