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 30: Variable for group name in @Test annotation
  Back to list
Status:  New
Owner:  ----


 
Reported by kack...@gmail.com, Jul 1, 2008
What steps will reproduce the problem?
1. Create string constant in your test class and use it as group name in 
your @Test annotation.

   For example:
   public class MyTest {
        public static final String GROUP_A = "groupA";

        @Test(groups = { GROUP_A })
        public void testFoo() {
            // Implementation....
        }
   }

2. Create a new TestNG run configuration and browse your available groups. 
The list contains a "GROUP_A" group name insead of "groupA". If you select 
the GROUP_A and try to run the test, then no test will be run.

What is the expected output? What do you see instead?
I want to see the "groupA" instead of variable name in the group list.

What version of the product are you using? On what operating system?
WinXP, Eclipse 3.3.2 (Build-id: M20080221-1800), TestNG 5.8.0.2. 

Powered by Google Project Hosting