Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » ClassNotFoundException - Verification hook class not found
ClassNotFoundException - Verification hook class not found [message #85147] Thu, 12 October 2006 08:50 Go to next message
Mayank is currently offline MayankFriend
Messages: 5
Registered: July 2009
Junior Member
Hi,
I'm trying out TPTP's AGR and am unable to insert verification hooks.
(Using Eclipse SDK 3.2.1, TPTP SDK 4.2.1 and EMF SDK 2.2.1. )
I want to insert a verification hook that checks the Error Log to ensure
that no errors were reported during the operation. However, when I run
the test, I get a failure in the execution log :
There was an error while running the macro associated with the test case:
Automated GUI Test. java.lang.ClassNotFoundException: Class UITestHook was
not found

Is there something I'm missing?

Cheers,
Mayank
Re: ClassNotFoundException - Verification hook class not found [message #85181 is a reply to message #85147] Thu, 12 October 2006 09:10 Go to previous messageGo to next message
Mayank is currently offline MayankFriend
Messages: 5
Registered: July 2009
Junior Member
Forgot to mention some details:
Im on Windows 2000 and did the following:

1. Installed eclipse 3.2.1/EMF2.2.1/TPTP4.2.1/AGR in a fresh location.

(Followed the AGR tutorial at
http://www.eclipse.org/tptp/test/documents/userguides/Intro- Auto-GUI.html)
2. Created a new plug-in project.
3. Did not create the optional deployment location etc.
4. Recorded a GUI test case which opens the error log and inserted a
verification hook on the Error Log.
5. Created a behaviour and added the above test.
6. Executed the test using Run-as -> run

the macro generated for the test case is pasted below :

<macro version="1.0">
<shell descriptive="Plug-in Development - UITestHook - Eclipse SDK"
id="org.eclipse.ui.internal.WorkbenchWindow" return-code="-1">
<command descriptive="Error Log" type="select"
resolverId="org.eclipse.tptp.test.auto.gui.nontrivial" contextId="menus"
widgetId="{{Window-Show View-Error Log}}-{{1.0}}"/>
<command type="verification"
contextId="view/org.eclipse.pde.runtime.LogView"
location="/UITestProject/src" resource="UITestHook"
hook="checkErrorLog2:Qorg.eclipse.ui.IViewPart;"/>
</shell>
</macro>


I get the ClassNotFound exception mentioned above on test invocation in
standard mode.

Please let me know how to get this thing to work.

Thanks,
Mayank
Re: ClassNotFoundException - Verification hook class not found [message #85241 is a reply to message #85181] Fri, 13 October 2006 14:16 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 404
Registered: July 2009
Senior Member
Hi Mayank,

Is the class "UITestHook" generated under "/UITestProject/src"? Can you see
the methods corresponding to the verification hooks that you've inserted?
Do you only notice this problem in standard mode or can you also reproduce
it in quick mode? If this is only happening in standard mode, then the
right files are not being transferred to the system's temp directory prior
to the test execution. If it can also be reproduced in quick mode, then the
class is likely missing.



"Mayank" <mayank1983@gmail.com> wrote in message
news:1f8a6f2a5374fa43a07288baf64bc75a$1@www.eclipse.org...
> Forgot to mention some details:
> Im on Windows 2000 and did the following:
>
> 1. Installed eclipse 3.2.1/EMF2.2.1/TPTP4.2.1/AGR in a fresh location.
>
> (Followed the AGR tutorial at
> http://www.eclipse.org/tptp/test/documents/userguides/Intro- Auto-GUI.html)
> 2. Created a new plug-in project.
> 3. Did not create the optional deployment location etc.
> 4. Recorded a GUI test case which opens the error log and inserted a
> verification hook on the Error Log.
> 5. Created a behaviour and added the above test.
> 6. Executed the test using Run-as -> run
> the macro generated for the test case is pasted below :
>
> <macro version="1.0">
> <shell descriptive="Plug-in Development - UITestHook - Eclipse SDK"
> id="org.eclipse.ui.internal.WorkbenchWindow" return-code="-1">
> <command descriptive="Error Log" type="select"
> resolverId="org.eclipse.tptp.test.auto.gui.nontrivial" contextId="menus"
> widgetId="{{Window-Show View-Error Log}}-{{1.0}}"/>
> <command type="verification"
> contextId="view/org.eclipse.pde.runtime.LogView"
> location="/UITestProject/src" resource="UITestHook"
> hook="checkErrorLog2:Qorg.eclipse.ui.IViewPart;"/>
> </shell>
> </macro>
>
>
> I get the ClassNotFound exception mentioned above on test invocation in
> standard mode.
>
> Please let me know how to get this thing to work.
>
> Thanks,
> Mayank
>
Re: ClassNotFoundException - Verification hook class not found [message #85315 is a reply to message #85241] Sun, 15 October 2006 08:42 Go to previous messageGo to next message
Mayank is currently offline MayankFriend
Messages: 5
Registered: July 2009
Junior Member
Hi Ali,
Problem found and fixed; I'd forgotten to create the plug-in dependencies
on the org.eclipse.pde.runtime and other related plug-ins for the
error-log. Everything works exactly as expected now. However, I think the
error message (Verification Hook class not found) was a bit misleading.
The real reason for the error was the class for Error-Log not being found.
Maybe this should be addressed?

Cheers,
Mayank
Re: ClassNotFoundException - Verification hook class not found [message #85420 is a reply to message #85315] Tue, 17 October 2006 14:46 Go to previous message
No real name is currently offline No real nameFriend
Messages: 404
Registered: July 2009
Senior Member
I'm glad that you were able to resolve your problem. Eclipse does not
compile classes that have unresolved
dependencies. Despite the error message not indicating the root cause of
the problem, it still is indicating the correct error. I have opened the
following defect to provide a more descriptive error message:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=161248

Thanks,
Ali Mehregani

"Mayank" <mayank1983@gmail.com> wrote in message
news:caf5933e9050fa13ab973a1b935018f3$1@www.eclipse.org...
> Hi Ali,
> Problem found and fixed; I'd forgotten to create the plug-in dependencies
> on the org.eclipse.pde.runtime and other related plug-ins for the
> error-log. Everything works exactly as expected now. However, I think the
> error message (Verification Hook class not found) was a bit misleading.
> The real reason for the error was the class for Error-Log not being found.
> Maybe this should be addressed?
>
> Cheers,
> Mayank
>
>
Previous Topic:Exception handling in custom rules/templates
Next Topic:Associating Analysis types with Data collectors
Goto Forum:
  


Current Time: Fri Apr 26 05:57:36 GMT 2024

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

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

Back to the top