My favorites | Sign in
Project Home
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 31: Patch provided: TestNG fails to generate results from test run based on group name, on a Windows system
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


 
Reported by gregt...@mindspring.com, Jul 9, 2008
What steps will reproduce the problem?
1. Using the TestNG plugin, create a runtime configuration based on a group
designation.
2. testng-eclipse auto-generated a temp-testng.xml file, with test
descriptor "G:<group name>" embedded in it.
3. testng-eclipse will start a test run, but fail when it is time to write
the results in the output directory.

What is the expected output? What do you see instead?
Expected output is a subdirectory utilizing the name of the group for
results. It fails to accomplish this due to "G:" being embedded in the
filename, which is illegal on a Windows-based system.

What version of the product are you using? On what operating system?
Using testng-eclipse 5.8.0.2, Eclipse 3.3, Windows XP.

I coded a patch to solve this, and tested it on my desktop with success:
Index: src/main/org/testng/eclipse/util/CustomSuite.java
===================================================================
--- src/main/org/testng/eclipse/util/CustomSuite.java	(revision 105)
+++ src/main/org/testng/eclipse/util/CustomSuite.java	(working copy)
@@ -333,7 +333,7 @@
   protected Collection/*<String>*/ m_packageNames;
   protected Collection/*<String>*/ m_classNames;
   protected Collection/*<String>*/ m_groupNames;
-  protected StringBuffer m_testName= new StringBuffer("G:");
+  protected StringBuffer m_testName= new StringBuffer("GRP-");
   
   public GroupListSuite(final String projectName,
                         final Collection packageNames,


 

Powered by Google Project Hosting