|
|
|
|
|
Re: Why AGR did not record any thing while changing to ther editors? [message #45015 is a reply to message #44480] |
Tue, 06 December 2005 09:58 |
Eclipse User |
|
|
|
Originally posted by: Charles.pku.gmail.com
Dearl Ali,
I have checked my operations, but those tree-selecting problems stll exist.
A detailed description is here. My operation: file->new->project,then a
dialog with bellow tree will be displayed.
[+] tn1
[+] tn2
[+] tn3
[-] tn4
||_____ l1
||_____ l2
||_____ l3
||_____ l4
||_____ l5 ( l5 is defalult selected)
||_____ l6
[+] tn5
[+] tn6
and tn2 has two children [-] tn2
|_____ l7
|_____ l8
tn6 has two children [-] tn6
|_____ [+]
|_____ [+]
Some problemes that i found:
1 if the item selected is above tn4, their first child node could be
selected. But, others could not.
The example in "Introtution to ... " could be rightly recorded
perhaps because the "java project"
is the first child of "java". The second child "The java project from
exist ant buildfile" could not
be selected.
2 In all children of tn4 and bellow tn4, only l1 could be recorded.
op sequence and the generated macro :
1 expand tn2, select l7, then next
************************************************
<command type="item-select"
contextId="wizard-page/newWizardSelectionPage"
widgetId="org.eclipse.swt.widgets.Tree#1">
<item
path="org.eclipse.ui.internal.dialogs.WizardCollectionElement0 "/>
</command>
<command type="item-expand"
contextId="wizard-page/newWizardSelectionPage"
widgetId="org.eclipse.swt.widgets.Tree#1" value="true">
<item
path="org.eclipse.ui.internal.dialogs.WizardCollectionElement2 "/>
</command>
<command type="item-select"
contextId="wizard-page/newWizardSelectionPage"
widgetId="org.eclipse.swt.widgets.Tree#1">
<item
path="org.eclipse.ui.internal.dialogs.WorkbenchWizardElement-1 "/>
</command>
************************************************
2 expand tn2, select l8, then next
************************************************
<command type="item-select"
contextId="wizard-page/newWizardSelectionPage"
widgetId="org.eclipse.swt.widgets.Tree#1">
<item
path="org.eclipse.ui.internal.dialogs.WizardCollectionElement0 "/>
</command>
<command type="item-expand"
contextId="wizard-page/newWizardSelectionPage"
widgetId="org.eclipse.swt.widgets.Tree#1" value="true">
<item
path="org.eclipse.ui.internal.dialogs.WizardCollectionElement2 "/>
</command>
<command type="item-select"
contextId="wizard-page/newWizardSelectionPage"
widgetId="org.eclipse.swt.widgets.Tree#1">
<item
path="org.eclipse.ui.internal.dialogs.WorkbenchWizardElement-1 "/>
</command>
************************************************
1 and 2 generate the same output macro
When I try to modify the macro, errors allways happen. Could u help?
|
|
|
Re: Why AGR did not record any thing while changing to ther editors? [message #45030 is a reply to message #45015] |
Tue, 06 December 2005 20:09 |
No real name Messages: 404 Registered: July 2009 |
Senior Member |
|
|
Hi Charles,
Looking at your macro, it seems that you have an old copy of AGR that didn't
have "org.eclipse.ui.internal.dialogs.WizardCollectionElement" registered in
widgetReg.xml file that is included with the plugin.
I would recommend downloading the 4.1 release build (Go to
www.eclipse.org/tptp > Click on Downloads > The "Latest Release - 4.1.0" tab
should be selected by default). The problem comes from not having a
registered widget entry under
org.eclipse.tptp.test.auto.gui_4.1.0\auto-gui\widgetReg.xml that would make
AGR aware of the objects you are expanding/selecting in the wizard page.
The specific entry that makes the AGR recorder aware of the tree items is:
<class name = "org.eclipse.ui.internal.dialogs.WizardCollectionElement"
matchThreshold = "1.0">
<method name = "getId" weight = "1.0"/>
</class>
To find out more about the adaptive widget resolver, see
http://www.eclipse.org/tptp/test/documents/userguides/Intro- Auto-GUI.html#2.4.1
Thanks
"Charles" <Charles.pku@gmail.com> wrote in message
news:cf14b5c73a43807e253d99e14b97a8df$1@www.eclipse.org...
> Dearl Ali,
>
> I have checked my operations, but those tree-selecting problems stll
exist.
> A detailed description is here. My operation: file->new->project,then a
> dialog with bellow tree will be displayed.
>
> [+] tn1
> [+] tn2
> [+] tn3
> [-] tn4
> ||_____ l1
> ||_____ l2
> ||_____ l3
> ||_____ l4
> ||_____ l5 ( l5 is defalult selected)
> ||_____ l6
> [+] tn5
> [+] tn6
>
> and tn2 has two children [-] tn2
> |_____ l7
> |_____ l8
>
> tn6 has two children [-] tn6
> |_____ [+]
> |_____ [+]
>
> Some problemes that i found:
> 1 if the item selected is above tn4, their first child node could be
> selected. But, others could not.
> The example in "Introtution to ... " could be rightly recorded
> perhaps because the "java project"
> is the first child of "java". The second child "The java project from
> exist ant buildfile" could not
> be selected.
> 2 In all children of tn4 and bellow tn4, only l1 could be recorded.
>
> op sequence and the generated macro :
>
> 1 expand tn2, select l7, then next
> ************************************************
> <command type="item-select"
> contextId="wizard-page/newWizardSelectionPage"
> widgetId="org.eclipse.swt.widgets.Tree#1">
> <item
> path="org.eclipse.ui.internal.dialogs.WizardCollectionElement0 "/>
> </command>
> <command type="item-expand"
> contextId="wizard-page/newWizardSelectionPage"
> widgetId="org.eclipse.swt.widgets.Tree#1" value="true">
> <item
> path="org.eclipse.ui.internal.dialogs.WizardCollectionElement2 "/>
> </command>
> <command type="item-select"
> contextId="wizard-page/newWizardSelectionPage"
> widgetId="org.eclipse.swt.widgets.Tree#1">
> <item
> path="org.eclipse.ui.internal.dialogs.WorkbenchWizardElement-1 "/>
> </command>
> ************************************************
> 2 expand tn2, select l8, then next
> ************************************************
> <command type="item-select"
> contextId="wizard-page/newWizardSelectionPage"
> widgetId="org.eclipse.swt.widgets.Tree#1">
> <item
> path="org.eclipse.ui.internal.dialogs.WizardCollectionElement0 "/>
> </command>
> <command type="item-expand"
> contextId="wizard-page/newWizardSelectionPage"
> widgetId="org.eclipse.swt.widgets.Tree#1" value="true">
> <item
> path="org.eclipse.ui.internal.dialogs.WizardCollectionElement2 "/>
> </command>
> <command type="item-select"
> contextId="wizard-page/newWizardSelectionPage"
> widgetId="org.eclipse.swt.widgets.Tree#1">
> <item
> path="org.eclipse.ui.internal.dialogs.WorkbenchWizardElement-1 "/>
> </command>
> ************************************************
> 1 and 2 generate the same output macro
>
> When I try to modify the macro, errors allways happen. Could u help?
>
>
|
|
|
Re: Why AGR did not record any thing while changing to ther editors? [message #45100 is a reply to message #45030] |
Thu, 08 December 2005 09:53 |
Eclipse User |
|
|
|
Originally posted by: Charles.pku.gmail.com
Ali,
Thank you very much! The tree selecting problemes have been solved after i
reinstalled the tptp and AGR, following ur advice. However another problem
occured.
The AGR produced such Macro to the click of a Twistie control :
************************************************************ ***********
<command type="focus"
contextId=" editor/org.eclipse.hyades.test.ui.editor.TestSuiteEditorPart /AutomatedTestSuite.testsuite "
widgetId="org.eclipse.ui.forms.widgets.Twistie#2"/>
************************************************************ ***********
When the case was replayed, the Twistie did not expand/collapse as
expected.
I have test some other Twistie, situation is the same.
Is there any thing wrong with my operation?
|
|
|
|
Re: Why AGR did not record any thing while changing to ther editors? [message #46305 is a reply to message #45257] |
Tue, 13 December 2005 06:52 |
Eclipse User |
|
|
|
Originally posted by: Charles.pku.gmail.com
Dear Ali,
Thanks for ur help.
Does the AGR support treecolumn/tabletree widget?
I am new to eclipse and Java, my programming experience are maily in
C/C++, so i wonder if there are other tools in eclipse that could be used
to test a GUI of eclipse plugin. (Although position based tools could do
the job, we wanna a more accurate one.)
Any suggestion?
Charles
|
|
|
Re: Why AGR did not record any thing while changing to ther editors? [message #46335 is a reply to message #46305] |
Tue, 13 December 2005 08:40 |
Eclipse User |
|
|
|
Originally posted by: Charles.pku.gmail.com
bellow is the recorded macro of the operation to expand the first item of
the tabletree:
<command type="item-expand"
contextId="editor/com.sarvega.ide.editor.appdef.AppDefEditor/xesos.xml "
widgetId="org.eclipse.swt.custom.TableTree#1" value="false">
<item path="com.sarvega.ide.core.appdef.ExternalServerPool"/>
</command>
<command type="item-select"
contextId="editor/com.sarvega.ide.editor.appdef.AppDefEditor/xesos.xml "
widgetId="org.eclipse.swt.widgets.Table#5">
<item path="0"/>
</command>
|
|
|
|
|
Re: Why AGR did not record any thing while changing to ther editors? [message #46736 is a reply to message #46717] |
Thu, 15 December 2005 07:22 |
Eclipse User |
|
|
|
Originally posted by: Charles.pku.gmail.com
Hi Ali,
In my case, the replay of TableTree/TreeColumn operations fail -- the node
is not expanded as expected.
Only one item in the TableTree. If expanded, one son node will display.
the operation of expanded the node generated following macro:
<command type="item-expand"
contextId="editor/com.sarvega.ide.editor.appdef.AppDefEditor/xesos.xml "
widgetId="org.eclipse.swt.custom.TableTree#1" value="false">
<item path="com.sarvega.ide.core.appdef.ExternalServerPool"/>
</command>
<command type="item-select"
contextId="editor/com.sarvega.ide.editor.appdef.AppDefEditor/xesos.xml "
widgetId="org.eclipse.swt.widgets.Table#5">
<item path="0"/>
</command>
|
|
|
|
Powered by
FUDForum. Page generated in 0.06059 seconds