Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » Running recorded test
Running recorded test [message #75002] Thu, 22 June 2006 17:22 Go to next message
exquisitus is currently offline exquisitusFriend
Messages: 13
Registered: July 2009
Junior Member
Hi,

I recorded a test using AGR and the quick run was fine. The test involved
showing a custom view shown by plugin in my current workbench. I encountered
2 issues
- When I created a run configuration for the same and ran it, it gives me
errors like contribution ID for the custom view not found. I did check that
in the workbench launched by the run configuration, the view does exist. Any
clues on why this error is occuring.
- Is it possible to run some Java code to do some pre-initialization before
the test case or test suite runs?

Thanks
- NP
--
Re: Running recorded test [message #75033 is a reply to message #75002] Fri, 23 June 2006 20:08 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 404
Registered: July 2009
Senior Member
Hi Nitin,

Can you attach your macro as well as the exact error about not finding the
contribution id? Do you experience any similar error when working with
standard Eclipse views (e.g. the package explorer)? I need to know the
exact command type that fails in your macro. Can you also let me know which
driver you are running?

As for your second question: You can create a test case with a verification
hook, inside of which you can do any pre-initialization that is required for
the test cases that follow.

Thanks.

"Nitin" <nitin@technobuff.net> wrote in message
news:e7ejlc$d4d$1@utils.eclipse.org...
> Hi,
>
> I recorded a test using AGR and the quick run was fine. The test involved
> showing a custom view shown by plugin in my current workbench. I
encountered
> 2 issues
> - When I created a run configuration for the same and ran it, it gives me
> errors like contribution ID for the custom view not found. I did check
that
> in the workbench launched by the run configuration, the view does exist.
Any
> clues on why this error is occuring.
> - Is it possible to run some Java code to do some pre-initialization
before
> the test case or test suite runs?
>
> Thanks
> - NP
> --
>
>
Re: Running recorded test [message #76242 is a reply to message #75033] Tue, 04 July 2006 18:06 Go to previous messageGo to next message
exquisitus is currently offline exquisitusFriend
Messages: 13
Registered: July 2009
Junior Member
Hi,

The macro I'm using is

--
<macro version="0.1" >
<shell id="org.eclipse.ui.internal.WorkbenchWindow" return-code="-1">
<command type="select" contextId="menus"
widgetId="contribid/viewsShortlist7|4|12">
<parent widgetId="window"/>
<parent widgetId="showView"/>
</command>
<shell id="org.eclipse.ui.internal.dialogs.ShowViewDialog"
return-code="0">
<command type="item-select" contextId="shell"
widgetId="org.eclipse.swt.widgets.Tree#1">
<item path="MyPlugin"/>
</command>
<command type="item-select" contextId="shell"
widgetId="org.eclipse.swt.widgets.Tree#1">
<item
path="org.eclipse.swt.widgets.TreeItem#{{comp.MyPlugin}}-{{1.0}} "/>
</command>
<command type="select" contextId="shell"
widgetId="org.eclipse.swt.widgets.Button#{{0}}-{{1.0}}"/>
</shell>
</shell>
</macro>
--

Today when I tried it again. The quick run goes fine. However, after
running the launch config I get result as "inconclusive" (no exception
either). What I used to get earlier was some contrib not found kind of
error.

Any help would be appreciated.

- NP
Re: Running recorded test [message #76569 is a reply to message #76242] Thu, 06 July 2006 18:33 Go to previous message
No real name is currently offline No real nameFriend
Messages: 404
Registered: July 2009
Senior Member
Does the second Eclipse workbench appear at all?
Which TPTP driver are you using to run the test case and what platform are
you running this against?

"Nitin" <nitin@technobuff.net> wrote in message
news:3f930712bce4272a7ab03e04ea1bed7e$1@www.eclipse.org...
> Hi,
>
> The macro I'm using is
>
> --
> <macro version="0.1" >
> <shell id="org.eclipse.ui.internal.WorkbenchWindow" return-code="-1">
> <command type="select" contextId="menus"
> widgetId="contribid/viewsShortlist7|4|12">
> <parent widgetId="window"/>
> <parent widgetId="showView"/>
> </command>
> <shell id="org.eclipse.ui.internal.dialogs.ShowViewDialog"
> return-code="0">
> <command type="item-select" contextId="shell"
> widgetId="org.eclipse.swt.widgets.Tree#1">
> <item path="MyPlugin"/>
> </command>
> <command type="item-select" contextId="shell"
> widgetId="org.eclipse.swt.widgets.Tree#1">
> <item
> path="org.eclipse.swt.widgets.TreeItem#{{comp.MyPlugin}}-{{1.0}} "/>
> </command>
> <command type="select" contextId="shell"
> widgetId="org.eclipse.swt.widgets.Button#{{0}}-{{1.0}}"/>
> </shell>
> </shell>
> </macro>
> --
>
> Today when I tried it again. The quick run goes fine. However, after
> running the launch config I get result as "inconclusive" (no exception
> either). What I used to get earlier was some contrib not found kind of
> error.
>
> Any help would be appreciated.
>
> - NP
>
Previous Topic:Naming agents...
Next Topic:AGR: How to find out that ant build terminated
Goto Forum:
  


Current Time: Fri Apr 19 07:21:47 GMT 2024

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

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

Back to the top