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 219939 - TestNG functional testing support helper methods
Summary: TestNG functional testing support helper methods
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: TestNG (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on: 232229
Blocks:
  Show dependency tree
 
Reported: 2012-10-11 18:44 UTC by František Mantlík
Modified: 2013-07-03 21:12 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Proposed patch of NbModuleSuite (4.34 KB, application/octet-stream)
2012-10-11 18:44 UTC, František Mantlík
Details

Note You need to log in before you can comment on or make changes to this bug.
Description František Mantlík 2012-10-11 18:44:08 UTC
Created attachment 125799 [details]
Proposed patch of NbModuleSuite

Proposed patch provides simple support for TestNG integration tests with the use of existing infrastructure in NbModuleSuite.

Two methods are introduced to set up and tear down RCP application from a TestNG test class. Proposed usage case example code can be found in the patch in runTestngContainer javadoc.

The proposed code works on my Maven-based RCP projects.

Known problem: 

Under some circumstances (not always - depends on the way how the test is initiated) starting RCP application produces series of org.netbeans.DuplicateException warnings. This does not break the tests nor affect running application functionality, nevertheless it makes annoying application startup experience because the warning is provided in the error-reporting dialog and does not fall into the application log only.