Parameterizing the IDs of Controls


In some applications, subscreens are regenerated (and with them, the IDs of these subscreens), which of course affects the IDs of the controls on these subscreens. To enable you to take account of this, you can parameterize a part, or all, of the ID of a control. In order to parameterize the complete ID of a control, follow the procedure described in Parameterizing an Input Value.

Another use is to change the state of radio buttons or checkboxes that were not recorded. Of course, for this, you need to have recorded at least one radio button or check box.

If a test script has a parameter MYPAR, you can replace all or part of an ID with <!MYPAR!>. The angle brackets and exclamation points serve as an escape sequence. During execution of the test script, <!MYPAR!> will be replaced by the current value of the parameter MYPAR. You can only do this with the IDs of controls.


Under the UserChangedState node, find the relevant GuiElement node and replace the relevant part of the control’s ID with the parameter name inside the <! !> escape sequence.


The Test Configuration radio button on the eCATT initial screen has the ID

'wnd[0]/usr/radRB_TEST_CONFIG'. In the structure editor, you can replace the ID with ‘wnd[0]/usr/rad<!MYPAR!>’, and in the command editor, assign a value to the parameter with MYPAR = ‘RB_TEST_CONFIG’.