This repository was archived by the owner on Nov 21, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
group dependency in suite xml file not working #113
Copy link
Copy link
Open
Description
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
Reactions are currently unavailable