Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 164176

Summary: Manual Test View throws NullPointerException when referenced test suite is missing.
Product: z_Archived Reporter: Bianca Jiang <bjiang>
Component: TPTPAssignee: Paul Slauenwhite <paulslau>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P1 CC: paulslau
Version: unspecifiedKeywords: plan
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Screen shot of manual client none

Description Bianca Jiang CLA 2006-11-10 15:41:17 EST
I was trying to run the new manual test suite for Test Doc:
http://dev.eclipse.org/viewcvs/index.cgi/test-results/test/org.eclipse.tptp.test.doc.user/manual/Doc/Test.Doc.Test_Log_Viewer.technical_review.Windows_IA32.testsuite?cvsroot=TPTP_Project

The Manual test client comes up and shows the name location, description of the test suite. But can not execute any test invocation and apply a result. (attaching screen shot) If I expand the test suite, then select a test invocation, the client crashes.

Tried other test suite for test doc. same problem. Might be related to the test suite containing no test cases, just invocations.
Comment 1 Bianca Jiang CLA 2006-11-10 15:43:13 EST
Created attachment 53652 [details]
Screen shot of manual client
Comment 2 Paul Slauenwhite CLA 2006-11-13 10:03:40 EST
This defect is caused by not having the references test suite in your workspace.  If you extract the test-results/test and test-results/platform folders from CVS, you can run the Test Project's documentation test suites.  When the referenced test suite cannot be located, the Manual Test View throws the following exception:

java.lang.NullPointerException
	at org.eclipse.tptp.test.manual.runner.ui.internal.ManualTestView.refreshPanes(ManualTestView.java:726)
	at org.eclipse.tptp.test.manual.runner.ui.internal.ManualTestView.access$4(ManualTestView.java:620)
	at org.eclipse.tptp.test.manual.runner.ui.internal.ManualTestView$10.handleEvent(ManualTestView.java:384)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
	at org.eclipse.tptp.test.manual.runner.ui.internal.ManualTestView.open(ManualTestView.java:138)
	at org.eclipse.tptp.test.manual.runner.core.internal.ManualTestRunner.main(ManualTestRunner.java:199)

Since this defect requires the Manual Test View to gracefully handle the missing referenced test suite, deferring to 4.4 and changing the abstract. 
Comment 3 Paul Slauenwhite CLA 2007-04-19 07:27:09 EDT
The following files and test cases checked-in to CVS (HEAD):

org.eclipse.tptp.test.manual.runner.core.internal.ManualTestRunnerResourceBundle.java
org.eclipse.tptp.test.manual.runner.core.internal.model.util.ExecutionManager.java
org.eclipse.tptp.test.manual.runner.ui.internal.ManualTestView.java
org.eclipse.tptp.test.manual.runner.ui.internal.MissingTestInvocationPane.java
org.eclipse.tptp.test.manual.runner.ui.internal.TestSuiteTreePane.java
org.eclipse.hyades.test.tools.core\src-manual-runner\org\eclipse\tptp\test\manual\runner\core\internal\messages.properties
org.eclipse.hyades.test.tools.core\src-manual-runner\icons\enabled\error.gif
Comment 4 Paul Slauenwhite CLA 2007-06-02 14:52:04 EDT
Reporter: Please verify and close in preparation for shutting down the TPTP 4.4 release.  Thanks.
Comment 5 Bianca Jiang CLA 2007-06-29 15:11:29 EDT
Validated with TPTP 4.4 candidate build:

http://www.eclipse.org/tptp/home/downloads/?buildId=TPTP-4.4.0-200706140100C