AGR - The references for two different Edit Boxes set to the same value [message #97697] |
Fri, 04 May 2007 08:04 |
Eclipse User |
|
|
|
Originally posted by: sluhay.magenta-technology.ru
Hi All,
Could you please give me any idea how to solve the following problem?
I record a test case. The references for two different Edit Boxes set to
the same value during the test case recording (see fragments '6' and '7'
in generated XML script below). As a result, playback of the test case is
failed because only one required filed is filled.
And the next quick question:
Is it better to include object id in test macro or register object ids
with object mine?
Basically I use the second option.
<!--1-->
<macro version="1.0">
<!--2-->
<shell descriptive="Platform SDK - TestSuite - Eclipse SDK"
id="org.eclipse.ui.internal.WorkbenchWindow" return-code="-1">
<!--3-->
<command descriptive="Platform Application Project" type="select"
resolverId="org.eclipse.tptp.test.auto.gui.nontrivial" contextId="menus"
widgetId="{{File-New&#x9;Alt+Shift+N-Platform Application
Project}}-{{1.0}}"/>
<!--4-->
<shell descriptive="Create Platform Application Project"
id="org.eclipse.jface.wizard.WizardDialog" return-code="0">
<!--5-->
<command type="modify" contextId="wizard-page/Create Platform
Application Project" widgetId="org.eclipse.swt.widgets.Text#1">
<![CDATA[TMP]]>
</command>
<!--6-->
<command type="modify"
resolverId="org.eclipse.tptp.test.auto.gui.nontrivial"
contextId="wizard-page/Create Platform Application Project" widgetId="7.0">
<![CDATA[TempApplication]]>
</command>
<!--7-->
<command type="modify"
resolverId="org.eclipse.tptp.test.auto.gui.nontrivial"
contextId="wizard-page/Create Platform Application Project" widgetId="7.0">
<![CDATA[temp.com]]>
</command>
<!--8-->
<command descriptive="Finish" type="select"
resolverId="org.eclipse.tptp.test.auto.gui.adaptive" contextId="wizard"
widgetId="{{16}}-{{1.0}}"/>
<!--9-->
</shell>
<!--10-->
</shell>
<!--11-->
</macro>
|
|
|
|
Re: AGR - The references for two different Edit Boxes set to the same value [message #98266 is a reply to message #97743] |
Tue, 08 May 2007 14:32 |
Eclipse User |
|
|
|
Originally posted by: sluhay.magenta-technology.ru
Hi Liz,
The test case main idea consists in filling of custom form which contains
standard widgets like text, button and label. For example,
Text1 field
Text2 field
Text3 field
Label field that filled dynamically depending on Text3 value
:
Button1
Button2
Note: Value is set to Text3 field by default at form opening. Label has a
value as well because of dependency.
I fill this from the top to the bottom at test case recording. As a result,
the same references for two different fields (Text1 and Text2) are appeared
in macro:
<command type="modify" referenceId="3">
<![CDATA[NEW]]>
</command>
<command type="modify" referenceId="4">
<![CDATA[MyNew]]>
</command>
<command type="modify" referenceId="4">
<![CDATA[mynew.com]]>
</command>
But if I record a test cases started from cleaning the Text3 field, next I
go to the top of form and fill it step by step then I see different
references for two different fields as expected.
<command type="modify" referenceId="3">
<![CDATA[NEW]]>
</command>
<command type="modify" referenceId="7">
<![CDATA[MyNew]]>
</command>
<command type="modify" referenceId="8">
<![CDATA[mynew.com]]>
</command>
Thanks a lot,
Olesya
"Liz Dancy" <lizdancy@ca.ibm.com>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03392 seconds