Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 173675 - Test Gen no longer works
Summary: Test Gen no longer works
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: TPTP (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P1 blocker (vote)
Target Milestone: ---   Edit
Assignee: Mark D Dunn CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 127277
  Show dependency tree
 
Reported: 2007-02-09 13:13 EST by Mark D Dunn CLA
Modified: 2016-05-05 10:36 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark D Dunn CLA 2007-02-09 13:13:26 EST
You can no longer generate a URLTest.  The following exception is displayed:

IWAT3022E cannot load node handler org.eclipse.hyades.test.tools.core.TRCAnnotationNodeHandler: org.eclipse.hyades.test.tools.core.TRCAnnotationNodeHandler
org.eclipse.hyades.test.core.testgen.TestgenException: IWAT3022E cannot load node handler org.eclipse.hyades.test.tools.core.TRCAnnotationNodeHandler
	at org.eclipse.hyades.execution.testgen.http.TRCNodeDispatcher.newNodeHandler(TRCNodeDispatcher.java:150)
	at org.eclipse.hyades.execution.testgen.http.TRCNodeDispatcher.registerHandlersFromProperties(TRCNodeDispatcher.java:125)
	at org.eclipse.hyades.execution.testgen.http.TRCNodeDispatcher.<init>(TRCNodeDispatcher.java:77)
	at org.eclipse.hyades.execution.testgen.http.TRCFileLoader.load(TRCFileLoader.java:87)
	at org.eclipse.hyades.execution.testgen.http.Testgen.runTestGen(Testgen.java:75)
	at org.eclipse.hyades.test.core.testgen.TestGenerator.runTestGen(TestGenerator.java:58)
	at org.eclipse.hyades.test.ui.testgen.util.TestgenUtil$1.run(TestgenUtil.java:62)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
Comment 1 Mark D Dunn CLA 2007-02-09 13:15:46 EST
TestGen has not been modified since June of 2005.  The following call has worked in all previous releases but no longer finds the class it is looking for and throws an exception:

Class.forName(org.eclipse.hyades.test.tools.core.TRCAnnotationNodeHandler) 
Comment 2 Mark D Dunn CLA 2007-02-09 13:16:27 EST
Set Target Milestone to 4.4 i1. 
Comment 3 Mark D Dunn CLA 2007-02-09 14:11:20 EST
The previous information about Class.forName() doesn't seem to be the real problem  since that class didn't exist in 4.3 but TestGen still worked.  

It is possible something has changed with the properties files that is causing this problem.  Further investigation is required.
Comment 4 Mark D Dunn CLA 2007-02-09 16:26:12 EST
Someone had removed items from the properties file that caused Test Gen to fail.  I placed those items back.  

It was indeed related to the Class.forName() described earlier.

Comment 5 Paul Slauenwhite CLA 2007-02-12 11:33:39 EST
P1 since included in 4.4.
Comment 6 Paul Slauenwhite CLA 2007-02-12 11:35:56 EST
(In reply to comment #4)
> Someone had removed items from the properties file that caused Test Gen to
> fail.  I placed those items back.  
> It was indeed related to the Class.forName() described earlier.

Mark, what properties did you replace.  

They properties were removed under defect https://bugs.eclipse.org/bugs/show_bug.cgi?id=127277 (see Comment #14 and Comment #15).
Comment 7 Mark D Dunn CLA 2007-02-12 12:36:10 EST
The following 3 lines were added back to org.eclipse.hyades.test.tools.core/plugin.properties


TRCAnnotationNodeHandler=org.eclipse.hyades.execution.testgen.http.TRCNodeHandler
TRCConnectionNodeHandler=org.eclipse.hyades.execution.testgen.http.TRCNodeHandler
TRCExecutorInfoNodeHandler=org.eclipse.hyades.execution.testgen.http.TRCNodeHandler
Comment 8 Mark D Dunn CLA 2007-02-19 14:21:31 EST
I just verified that this works with TPTP build from 20070219_0100.