Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » How to record an EditorPart and a ViewPart
How to record an EditorPart and a ViewPart [message #129821] Wed, 07 May 2008 09:21 Go to next message
Eclipse UserFriend
Originally posted by: sarah.korthaus.metris.de

Our program consits of ViewPart Tabs (left hand) and EditorParts (right
hand). If you select one of the ViewParts then an EditorPart opens and you
can perform an action, like click a Button.

My problem is that if I'm recording the scenario:
1. selecting a ViewPart
2. selecting the corresponding EditorPart
3. selecting a Button

the only captured macro(which includes the object mines) I get is this:
<macro ...> <shell ...>
<command type="select"
resolverId="org.eclipse.tptp.test.auto.gui.adaptive"
contextId="editor/de.ourWorkbench.ourEditor/OurEditorHeading "
widgetId="{{ourButton}}-{{1.0}}"/>

<command descriptive="OurEditorHeading" type="close-workbenchpart"
contextId="editor" widgetId="de.ourWorkbench.ourEditor/OurHeading"/>
</shell></macro>

Now my questions:
1. Why didn't AGR recognize the View?
2. Why has a 'close-workbenchpart' command type been captured?
3. How could I capture an EditorPart and a ViewPart?
4. Is there a way to register them?

thanks,
Sarah
Re: How to record an EditorPart and a ViewPart [message #129886 is a reply to message #129821] Thu, 08 May 2008 13:33 Go to previous message
Jimmy Jin is currently offline Jimmy JinFriend
Messages: 32
Registered: July 2009
Member
Hello, Sarah,

AGR will not record the actions like selecting/activating a View (by
just clicking the View's tab). But if you perform some action inside of
the View, such as click a button in it, then when playing back, the view
will first be activated (at least in the latest AGR version, as I
remember), and then the action will be performed on the widget.

The "close-workbenchpart" command is recorded because there must have
been some editor being closed after you click the button, which trigger
the recorder to log it. If it IS actually closed by your program
automatically, I think you can safely remove this command manually.

Regards,
Jimmy Jin

Sarah Korthaus wrote:
> Our program consits of ViewPart Tabs (left hand) and EditorParts (right
> hand). If you select one of the ViewParts then an EditorPart opens and
> you can perform an action, like click a Button.
>
> My problem is that if I'm recording the scenario:
> 1. selecting a ViewPart
> 2. selecting the corresponding EditorPart
> 3. selecting a Button
>
> the only captured macro(which includes the object mines) I get is this:
> <macro ...> <shell ...>
> <command type="select"
> resolverId="org.eclipse.tptp.test.auto.gui.adaptive"
> contextId="editor/de.ourWorkbench.ourEditor/OurEditorHeading "
> widgetId="{{ourButton}}-{{1.0}}"/>
>
> <command descriptive="OurEditorHeading" type="close-workbenchpart"
> contextId="editor" widgetId="de.ourWorkbench.ourEditor/OurHeading"/>
> </shell></macro>
>
> Now my questions:
> 1. Why didn't AGR recognize the View?
> 2. Why has a 'close-workbenchpart' command type been captured?
> 3. How could I capture an EditorPart and a ViewPart?
> 4. Is there a way to register them?
>
> thanks,
> Sarah
>
Previous Topic:Object Allocation windows is not shown during Remote profiling with Agent contr
Next Topic:tptp profiling in batch-mode?
Goto Forum:
  


Current Time: Sun Dec 21 18:51:59 GMT 2014

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

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