Skip to content
This repository has been archived by the owner on Nov 21, 2017. It is now read-only.

group dependency in suite xml file not working #113

Open
GoogleCodeExporter opened this issue Apr 23, 2015 · 1 comment
Open

group dependency in suite xml file not working #113

GoogleCodeExporter opened this issue Apr 23, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 23 Jul 2013 at 8:39

@GoogleCodeExporter
Copy link
Author

It seems the minimum support testNG verstion for this feature is 6.6.

Original comment by [email protected] on 25 Jul 2013 at 1:40

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant