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

Summary: TestNG functional testing support helper methods
Product: java Reporter: František Mantlík <mantlik>
Component: TestNGAssignee: Theofanis Oikonomou <theofanis>
Status: NEW ---    
Severity: normal CC: jungi
Priority: P3    
Version: 7.3   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on: 232229    
Bug Blocks:    
Attachments: Proposed patch of NbModuleSuite

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.