This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 212381 - Unable to navigate to failure - no stracktrace in results nor output
Summary: Unable to navigate to failure - no stracktrace in results nor output
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: TestNG (show other bugs)
Version: 7.2
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: Tomas Danek
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2012-05-11 12:22 UTC by Tomas Danek
Modified: 2012-12-12 15:46 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
testing project (77.14 KB, application/zip)
2012-05-11 12:22 UTC, Tomas Danek
Details
Test Results Window with stacktrace (38.36 KB, image/png)
2012-05-11 14:10 UTC, Theofanis Oikonomou
Details
screenshot - some nodes not expandable. (59.55 KB, image/png)
2012-11-21 13:26 UTC, Tomas Danek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Danek 2012-05-11 12:22:03 UTC
Created attachment 119347 [details]
testing project

Product Version: NetBeans IDE Dev (Build 201205110400)
Java: 1.7.0_04; Java HotSpot(TM) 64-Bit Server VM 23.0-b21
System: Mac OS X version 10.7.3 running on x86_64; US-ASCII; en_US (nb)
User directory: /Users/tomas/Library/Application Support/NetBeans/dev
Cache directory: /Users/tomas/Library/Caches/NetBeans/dev
-----------
- in attached project, run test suite (from popup). You see there's a failure in test results, but you are not able to get any stracktrace. Click on node with test failure navigates only to testcase and method which failed.
- OTOH, while running single testcae (TC2), output is verbose and at least in output window I'm able to navigate using call stack:

[VerboseTestNG] java.lang.NullPointerException
[VerboseTestNG] 	at testingprj.TestingPrj.failMe(TestingPrj.java:22)
[VerboseTestNG] 	at testngpack.TC2.hello2a(TC2.java:43)

would be nice to integrate this to test results window directly.
Comment 1 Theofanis Oikonomou 2012-05-11 14:09:43 UTC
I am sorry but I cannot reproduce. I am attaching a screenshot of what I get. The stacktrace is integrated in the Test Results Window and I can navigate using the "Go to Source" popup action.
Comment 2 Theofanis Oikonomou 2012-05-11 14:10:24 UTC
Created attachment 119355 [details]
Test Results Window with stacktrace
Comment 3 Tomas Danek 2012-05-14 10:26:32 UTC
hmm, now it works for me as well:( Some kind of random bug probably, will see if i can reproduce again.
Comment 4 Tomas Danek 2012-05-14 11:13:33 UTC
just happend again... marking with RANDOM
Comment 5 Tomas Danek 2012-06-15 10:56:52 UTC
try to reproduce with:

- create Anagrame game sample (samples|java)
- on com.toy.anagrams.lib invoke "Create tests"
- create testNG tests + suite
- invoke "Test file" on suite

--> Random number of tests has not expandable stacktrace

IMO this has something to to with refreshing status of nodes, since toggling off and on "Show failed" does some kind of refresh. After that all nodes are ok. Worth to take a look if this could be fixed for 7.2
Comment 6 Theofanis Oikonomou 2012-06-21 12:26:13 UTC
(In reply to comment #5)
> IMO this has something to to with refreshing status of nodes, since toggling
> off and on "Show failed" does some kind of refresh. After that all nodes are
> ok. Worth to take a look if this could be fixed for 7.2

This seems to be the reason. Some synchronization problem. Since there is a workaround I am changing to P3 and targeting to fix it in trunk for 7.3 or a patch in 7.2 if there will be one
Comment 7 Tomas Danek 2012-08-27 14:02:07 UTC
unfortunately we won't have a fix in 72patch1 timeframe, let's try 72patch2
Comment 8 Antonin Nebuzelsky 2012-10-09 11:52:40 UTC
Too risky for 7.2.1. Removing "72patch2-candidate" tag.
Comment 9 Theofanis Oikonomou 2012-11-21 12:09:03 UTC
Using the steps from comment 5, I can reproduce it in NetBeans IDE 7.2 (Build 201207171143) but not in latest builds NetBeans IDE Dev (Build 20121119-3e15ac13b3cf). Please reopen if it still happens for you. Thank you
Comment 10 Tomas Danek 2012-11-21 13:26:23 UTC
Created attachment 128207 [details]
screenshot - some nodes not expandable.

Still reproducible in build, see screenshot

Product Version: NetBeans IDE Dev (Build 201211180002)
Java: 1.7.0_10-ea; Java HotSpot(TM) 64-Bit Server VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_10-ea-b15
System: Mac OS X version 10.8.2 running on x86_64; UTF-8; en_US (nb)
User directory: /Users/tomas/Library/Application Support/NetBeans/dev
Cache directory: /Users/tomas/Library/Caches/NetBeans/dev
Comment 11 Theofanis Oikonomou 2012-11-29 11:46:31 UTC
I think that this is fixed by http://hg.netbeans.org/core-main/rev/da970729846b
Comment 12 Quality Engineering 2012-12-02 03:06:58 UTC
Integrated into 'main-golden', will be available in build *201212020001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/da970729846b
User: Theofanis Oikonomou <theofanis@netbeans.org>
Log: Issue #212381 - Unable to navigate to failure - no stracktrace in results nor output
Comment 13 Tomas Danek 2012-12-12 15:46:58 UTC
works now fine, thanks! 

Product Version: NetBeans IDE Dev (Build 201212100001)