TPTP AGR problem on PVCS plug in with attachment [message #101287] |
Wed, 20 June 2007 07:11 |
Eclipse User |
|
|
|
Originally posted by: Enwei.Shi.cognizant.com
Hi,
Firstly I want to thank Lis for suggestion.
Now I post this question with a testsuite.
I found that PVCS plugin's definition on the location of the element is
differernt from the Eclipse common way. For example, in "includes object ids
in test macro" way, I use AGR to record an action for clicking a java file
of a project. The script will be:
<command descriptive="Activator.java" type="item-select"
resolverId="org.eclipse.tptp.test.auto.gui.adaptive"
contextId="view/org.eclipse.jdt.ui.PackageExplorer"
widgetId="{{/}}-{{1.0}}">
<item path="{{/test/src/test/Activator.java}}-{{1.0}}"
resolverId="org.eclipse.tptp.test.auto.gui.adaptive"/>
</command>
But if I clicked a PVCS plugin element in "includes object ids in test
macro", the same way, the script will be:
<command descriptive="T:\eclipse_sync1_pdb" type="item-select"
contextId="shell" widgetId="org.eclipse.swt.widgets.Table#1">
<item path="5"/>
</command>
I noticed that AGR uses org.eclipse.tptp.test.auto.gui.adaptive to handle
the recording on Eclipse but on the PVCS plugin it does not use that
adapter.
How it comes?
Thank you
Best Regards,
Wayne
____________________________________________________________ ____________________________________________________________ ________________
Hi,
Thanks for your interest in TPTP. The problem is very likely due to the
changing location of the item in the list. If there is a way to make this
static (i.e. always at the bottom or top) then you could use position-based
recording to get a consistent result. If you attach your entire test case
and object mine I may be able to give you a better recording workaround to
accomplish the same goal.
Sincerely,
Liz Dancy
"Wayne" <Enwei.Shi@cognizant.com> wrote in message
news:f4t5db$gum$1@build.eclipse.org...
> HI,
>
>
>
> Now, we are using the TPTP AGR to recorde the action on PVCS plug-in. The
> action is select a project from a project list which is automaticlly got
> from the version control sever so the position of the project is dynamic.
>
>
>
>
>
> We have record the position of the
-
Attachment: t.testsuite
(Size: 2.46KB, Downloaded 177 times)
|
|
|
Re: TPTP AGR problem on PVCS plug in with attachment [message #101375 is a reply to message #101287] |
Wed, 20 June 2007 20:33 |
Liz Dancy Messages: 77 Registered: July 2009 |
Member |
|
|
Hi Wayne,
The AGR will attempt to resolve widgets using registered widget resolvers
such as the auto.gui.adaptive widget resolver which is included as a static
XML file with the AGR under the auto-gui folder/widgetReg.xml
It will step through the resolvers, using the first one which can resolve
the widget. If you could attach your plugin or a similar use case I can walk
you through the specifics for this case.
Note that you can also register your own custom widget resolvers using this
extension point:
org.eclipse.tptp.test.auto.gui.widgetResolver.
Sincerely,
Liz Dancy
"Wayne" <Enwei.Shi@cognizant.com> wrote in message
news:f5ajs9$ki1$1@build.eclipse.org...
> Hi,
>
> Firstly I want to thank Lis for suggestion.
>
> Now I post this question with a testsuite.
>
> I found that PVCS plugin's definition on the location of the element is
> differernt from the Eclipse common way. For example, in "includes object
> ids in test macro" way, I use AGR to record an action for clicking a java
> file of a project. The script will be:
>
> <command descriptive="Activator.java" type="item-select"
> resolverId="org.eclipse.tptp.test.auto.gui.adaptive"
> contextId="view/org.eclipse.jdt.ui.PackageExplorer"
> widgetId="{{/}}-{{1.0}}">
> <item path="{{/test/src/test/Activator.java}}-{{1.0}}"
> resolverId="org.eclipse.tptp.test.auto.gui.adaptive"/>
> </command>
>
> But if I clicked a PVCS plugin element in "includes object ids in test
> macro", the same way, the script will be:
>
> <command descriptive="T:\eclipse_sync1_pdb" type="item-select"
> contextId="shell" widgetId="org.eclipse.swt.widgets.Table#1">
> <item path="5"/>
> </command>
>
> I noticed that AGR uses org.eclipse.tptp.test.auto.gui.adaptive to handle
> the recording on Eclipse but on the PVCS plugin it does not use that
> adapter.
>
> How it comes?
>
> Thank you
>
>
> Best Regards,
> Wayne
>
> ____________________________________________________________ ____________________________________________________________ ________________
>
> Hi,
>
> Thanks for your interest in TPTP. The problem is very likely due to the
> changing location of the item in the list. If there is a way to make this
> static (i.e. always at the bottom or top) then you could use
> position-based
> recording to get a consistent result. If you attach your entire test case
> and object mine I may be able to give you a better recording workaround to
> accomplish the same goal.
>
> Sincerely,
>
> Liz Dancy
>
>
> "Wayne" <Enwei.Shi@cognizant.com> wrote in message
> news:f4t5db$gum$1@build.eclipse.org...
>> HI,
>>
>>
>>
>> Now, we are using the TPTP AGR to recorde the action on PVCS plug-in. The
>> action is select a project from a project list which is automaticlly got
>> from the version control sever so the position of the project is dynamic.
>>
>>
>>
>>
>>
>> We have record the position of the
|
|
|
Powered by
FUDForum. Page generated in 0.03920 seconds