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

Bug 413921

Summary: TCB and TSB both demonstrate a strange layout and do not display any entries
Product: [Technology] Jubula Reporter: Tobias Eiss <Tobias.Eiss>
Component: UIAssignee: Marvin Mueller <marvin_m>
Status: CLOSED FIXED QA Contact: Oliver Goetz <Oliver.Goetz>
Severity: normal    
Priority: P3 CC: alexandra.schladebeck, marvin_m, sebastian.jubula
Version: 2.0Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
screenshot: TCB and TSB
none
screenshot: TCB and TSB
none
screenshot: TCB and TSB
none
TSB and TCB only with IDs
none
log file
none
patch which fixes the bug marvin_m: iplog+

Description Tobias Eiss CLA 2013-07-29 09:52:48 EDT
Created attachment 233888 [details]
screenshot: TCB and TSB

The Test Case Browser and Test Suite Browser both demonstrate a strange layout and do not display any entries (see screenshot).
You can reproduce this situation with following steps:
 1. Open the Functional Test Reporting perspective.
 2. Restart Jubula and choose the same Workspace. After restarting, Jubula displays the Functional Test Reporting perspective.
 3. Open a Project (Test -> Open...).
 4. Open a Test Result (double click on a Test Result Summary in the Test Result Summary View).
 5. Change to the Functional Test Specification perspective.

The result is that Test Case Browser and the Test Suite Browser demonstrate the odd behavior shown in the screenshot.
Comment 1 Oliver Goetz CLA 2013-07-29 10:10:11 EDT
I was able to reproduce this behavior on a Win7 machine using Jubula 7.1
Comment 2 Tobias Eiss CLA 2013-07-30 02:43:46 EDT
Created attachment 233921 [details]
screenshot: TCB and TSB

add the right screenshot
Comment 3 Tobias Eiss CLA 2013-07-30 02:46:14 EDT
Created attachment 233922 [details]
screenshot: TCB and TSB
Comment 4 Raimar Bühmann CLA 2013-08-01 07:07:52 EDT
Created attachment 234011 [details]
TSB and TCB only with IDs

I have added a screenshot of TCB and TSB, which shows only IDs instead of the normal items. This can be reproduced by loading a project, while you are in the report perspective and switch the first time after program start to the specification perspective.
Comment 5 Sebastian Struckmann CLA 2013-10-18 08:01:29 EDT
Created attachment 236648 [details]
log file

I also reproduced the behavior. Closing the application generated the attached log file.
Comment 6 Sebastian Struckmann CLA 2013-10-21 07:25:27 EDT
Created attachment 236702 [details]
patch which fixes the bug

The problem was that in the GeneralLabelProvider there were displays accessed during initialization of the class before these displays were created elsewhere. The patch fixes this.
Comment 7 Marvin Mueller CLA 2013-10-21 09:30:26 EDT
The fix works. If there are other errors please feel free to reopen.

Checked and committed the patch with changeset: git.eclipse.org/c/jubula/org.eclipse.jubula.core.git/commit/?id=09cb80ddecfc7779dcf49ed5607a29fa91724595
Comment 8 Oliver Goetz CLA 2013-10-22 03:57:12 EDT
I was not able to reproduce this behavior.