testng-team / testng-googlecode

DEPRECATED: Automatically exported from code.google.com/p/testng
0 stars 0 forks source link

group dependency in suite xml file not working #113

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Create the following two test classes:
public class Test1
{
    @Test(groups = { "a" })
    public void test1()
    {
       System.out.println("test1");
    }
}
public class Test2
{

    @Test(groups = { "b" })
    public void test2()
    {
        System.out.println("test2");
    }

}

2. Create the following test suite file
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite thread-count="5" verbose="2" name="test suite"
    parallel="false" annotations="JDK">
    <test name="test" enabled="true">
        <groups>
            <dependencies>
                    <group name="a" depends-on="b" />
                </dependencies>

            <run>
                <include name="b"/>
                <include name="a"/>
            </run>

        </groups>
        <classes>
            <class name="Test1" />
            <class name="Test2" />
        </classes>
    </test>
</suite>

What is the expected output? What do you see instead?
It is expected to print "test2" then "test1", but it prints "test1" then 
"test2".

What version of the product are you using? On what operating system?
testNG 6.3.1 on Windows 7

Please provide any additional information below.

Original issue reported on code.google.com by johnqian...@gmail.com on 23 Jul 2013 at 8:39

GoogleCodeExporter commented 9 years ago
It seems the minimum support testNG verstion for this feature is 6.6.

Original comment by johnqian...@gmail.com on 25 Jul 2013 at 1:40