Bug 103551 - (Test) Test Log Viewer: Test script navigation
Summary: (Test) Test Log Viewer: Test script navigation
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: TPTP (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P1 enhancement with 3 votes (vote)
Target Milestone: ---   Edit
Assignee: Bianca Jiang CLA
QA Contact:
URL:
Whiteboard:
Keywords: plan
Depends on: 103103
Blocks:
  Show dependency tree
 
Reported: 2005-07-12 16:40 EDT by Bianca Jiang CLA
Modified: 2016-05-05 10:32 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 Bianca Jiang CLA 2005-07-12 16:40:53 EDT
When execution event provides information about the test script file and line
number of the invocation, log viewer should provide the function to navigate
back to the code.
Comment 1 Bianca Jiang CLA 2005-07-12 16:42:26 EDT
This will require a little model extension to include the test script data.
Comment 2 Kent D Siefkes CLA 2005-09-01 00:34:37 EDT
Updating Version from 4.1 to 4.2 and Priority to P1 for inclusion as TPTP 4.2 
request.
Comment 3 Mark D Dunn CLA 2005-11-01 09:32:07 EST
Reassigning to Bianca per her request.
Comment 4 Christophe Telep CLA 2005-12-09 10:22:05 EST
proposed to be plan for 4.2 (plan keyword added)
Comment 5 Christophe Telep CLA 2005-12-09 12:19:01 EST
Target set to 4.2
Comment 6 Bianca Jiang CLA 2006-01-23 12:25:26 EST
Available in build TPTP-4.2.0-200601230100 or later.

Implemented as a sample extension to "org.eclipse.hyades.test.ui.executionHistoryExtension.actionExtension" (refer to bug 103555). See class org.eclipse.hyades.test.ui.forms.actions.OpenJavaScriptAction and its javadoc for details.

By default this extension is NOT registered. Vendor interested in using it need to have 2 things:
1) generated test log (a.k.a. execution history) file should contain java script class information as ExecutionEvent properties.
2) an extension to "org.eclipse.hyades.test.ui.executionHistoryExtension.actionExtension" extension point need to be registered either using the action class OpenJavaScriptAction as is or implementing your own.

The registered action will show up as a push button in Test Log Viewer, next to the Events tree and listen to selection changes on the Events tree. When the right event (with properties for java script file information) is selected, this action will become enabled. When clicked, it will open up the java script in eclipse JDT java editor and highlight the line number provided in the event proeprties.

Note: since this sample action uses JDT java editor, JDT has to present in the eclipse shell. It does not work in RCP. 
Comment 7 Paul Slauenwhite CLA 2006-11-16 08:59:34 EST
ACTION: Please verify/close this defect.
Comment 8 Paul Slauenwhite CLA 2007-02-12 12:57:55 EST
Closing by default since not closed by the originator in the 7+ months since being resolved.  

Please reopen if the issue is still present in the latest TPTP release or the resolution is not correct.
Comment 9 Paul Slauenwhite CLA 2009-11-23 10:23:46 EST
Correcting component.