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.
Summary: | [72cat] Not able to debug TestNG suite | ||
---|---|---|---|
Product: | java | Reporter: | crazyjavahacking |
Component: | TestNG | Assignee: | Theofanis Oikonomou <theofanis> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jglick, jungi, mmirilovic, musilt2 |
Priority: | P1 | Keywords: | SPACE_IN_PATH |
Version: | 7.2 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 189308 |
Attachments: |
stacktrace
stacktrace |
Description
crazyjavahacking
2012-06-11 08:01:07 UTC
Created attachment 120640 [details]
stacktrace
I think the problem was caused by the fix in bug #213773. This should be fixed by http://hg.netbeans.org/main/rev/c89c9b434e69 as I cannot reproduce it in todays build. Please verify and reopen if it happens again. Thank you Still the same problem in the today build - NetBeans Dev 201206130001. I just found that wrong stack trace was posted. The correct one is: java.io.FileNotFoundException: C:\Users\Martin (Systém nemůže nalézt uvedený soubor) at java.io.FileInputStream.open(Native Method) [TestNG] [ERROR] No test suite found. Nothing to run at java.io.FileInputStream.<init>(FileInputStream.java:120) at java.io.FileInputStream.<init>(FileInputStream.java:79) at org.testng.xml.Parser.parse(Parser.java:165) at org.testng.TestNG.initializeSuitesAndJarFile(TestNG.java:305) at org.testng.TestNG.run(TestNG.java:998) at org.testng.TestNG.privateMain(TestNG.java:1328) at org.testng.TestNG.main(TestNG.java:1297) java.io.FileNotFoundException: C:\Users\Martin Skurla\Downloads\JUnitSampleProject_TS_68_JUnit\JUnitSampleProject\Skurla\Downloads\JUnitSampleProject_TS_68_JUnit\JUnitSampleProject\test\teststorun\TeststorunSuite.xml (Systém nemůže nalézt uvedenou cestu) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:120) at java.io.FileInputStream.<init>(FileInputStream.java:79) at org.testng.xml.Parser.parse(Parser.java:165) at org.testng.TestNG.initializeSuitesAndJarFile(TestNG.java:305) at org.testng.TestNG.run(TestNG.java:998) at org.testng.TestNG.privateMain(TestNG.java:1328) at org.testng.TestNG.main(TestNG.java:1297) The correct one is: C:\Users\Martin Skurla\Downloads\JUnitSampleProject_TS_68_JUnit\JUnitSampleProject\test\teststorun\TeststorunSuite.xml Probably problem with blank character in the path? moving to P2 since we are past code freeze in order to be able to propagate fix to 7.2 Created attachment 120846 [details]
stacktrace
1) created javase (ant) project on path with space in path
2) on package invoked "Create test", generated also suite
3) invoked "Debug" on test suite XML -> NPE
${testng.cmd.args} needs probably to be escaped. Fixed in core-main: hg.netbeans.org/core-main/rev/1eb41ac0dc93 Tomasi could you please verify? Thank you Integrated into 'main-golden', will be available in build *201206150001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/1eb41ac0dc93 User: Theofanis Oikonomou <theofanis@netbeans.org> Log: Issue #213939 - [72cat] Not able to debug TestNG suite Thanks for fixing, works correctly in 201206150001. marking as Verified then. Fanis, please proceed with integration into 7.2 branch, thanks in advance Integrated into release72 branch: http://hg.netbeans.org/releases/rev/56513d045c14 Integrated into 'releases', will be available in build *201206182200* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/56513d045c14 User: Theofanis Oikonomou <theofanis@netbeans.org> Log: Issue #213939 - [72cat] Not able to debug TestNG suite (transplanted from 1eb41ac0dc93514ccd03ebd6a6aa240d9a1662e9) ... pending verification in NB 7.2 |