|
Re: Unique field Id (Class Id) with aditional attributes for RCP Jubula Tests [message #1268372 is a reply to message #1268350] |
Mon, 10 March 2014 12:18 |
Jeremie Bresson Messages: 1252 Registered: October 2011 |
Senior Member |
|
|
Hi,
Bug 420626 is just about having the id on the field.
Now we need to be able to consume this Unique ID and to set it on the SWT (or Swing) widget. The solution should be flexible enough to work with different UI testing tool (for example HP Quality Center does not have the same expectation as Jubula).
See also, for Swing: Set name of Swing component from Scout
If you want to try it now (Scout version > Luna M5), you can this (suggested in the thread about the e4 StylingEngine):
@Override
public ISwtScoutFormField createFormField(Composite parent, IFormField model) {
ISwtScoutFormField formField = super.createFormField(parent, model);
//Set something on the field:
formField.getSwtField().setData("TEST_COMP_NAME", model.classId());
//Set something on the label:
formField.getSwtLabel().setData("TEST_COMP_NAME", model.classId() + "_LABEL");
return formField;
}
I did not test this. I am really interrested in any feedback you can provide about this approach.
[Updated on: Mon, 10 March 2014 12:19] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03234 seconds