Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » AGR - The references for two different Edit Boxes set to the same value
AGR - The references for two different Edit Boxes set to the same value [message #97697] Fri, 04 May 2007 08:04 Go to next message
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&amp;#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 #97743 is a reply to message #97697] Fri, 04 May 2007 16:06 Go to previous messageGo to next message
Liz Dancy is currently offline Liz Dancy
Messages: 77
Registered: July 2009
Member
Hi Olesya,

Would it be possible for you to attach a test case which illustrates this
and/or more information on your environment so that I can run your Macro? My
first suggestion would be to try adding a wait command between the two
fragments in your script so that you can see exactly where it is failing. If
you could include the error message that would also be most helpful.

To answer your second question, this choice is up to you but the benefit of
using the Object Mine is when it comes time to refactor because you have a
centralized store of all of the Object IDs in your Macro. You can use the
Object mine to update the test suite if a widget's ID changes, which will
save you time (as opposed to going through each occurrence of an outdated
Object's reference and updating it if you do not use Object Mines).

Sincerely,

Liz Dancy


"Olesya" <sluhay@magenta-technology.ru> wrote in message
news:01299b4a6e32e8520dbd67c52259d3d1$1@www.eclipse.org...
> 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&amp;#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 Go to previous messageGo to next message
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>
Re: AGR - The references for two different Edit Boxes set to the same value [message #98370 is a reply to message #98266] Wed, 09 May 2007 19:39 Go to previous message
Liz Dancy is currently offline Liz Dancy
Messages: 77
Registered: July 2009
Member
Hi Olesya,

This sounds like it is related to the following open defect:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=171083

Please feel free to add yourself to the CC list to follow its progress.

Sincerely,

Liz Dancy
"Sluhay Olesya" <sluhay@magenta-technology.ru> wrote in message
news:f1q1sc$u4l$1@build.eclipse.org...
> 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>
Previous Topic:Can't make TPTP work on my eclipse
Next Topic:Logging Agent Termination
Goto Forum:
  


Current Time: Tue Sep 16 17:33:26 GMT 2014

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

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