<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="Notifications" verbose="10">
<test name="Suite">
<classes>
<class name="TestLab.Sep43h21.Notifications.Payment_Approvals_Preconfig_1" />
<class name="TestLab.Sep43h21.Notifications.Approvals_1_1" />
<class name="TestLab.Sep43h21.Notifications.Payment_Comment_Preconfig_1" />
</classes>
</test>
</suite>
In this scenario, it will run with order class:
- Payment_Approvals_Preconfig_1
- Approvals_1_1
- Payment_Comment_Preconfig_1
2. But when I use Group Dependency as below:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="Notifications" verbose="10">
<test name="Suite">
<groups>
<dependencies>
<group name="Approvals_1_1" depends-on="Payment_Approvals_Preconfig_1" />
</dependencies>
</groups>
<classes>
<class name="TestLab.Sep43h21.Notifications.Payment_Approvals_Preconfig_1" />
<class name="TestLab.Sep43h21.Notifications.Approvals_1_1" />
<class name="TestLab.Sep43h21.Notifications.Payment_Comment_Preconfig_1" />
</classes>
</test>
</suite>
In this scenario, it will run with order class, that is not my expectation:
- Payment_Approvals_Preconfig_1
- Payment_Comment_Preconfig_1
- Approvals_1_1
Note 1: All classes will run successful.
Note 2: Attachments is my classes, I separate one real test case into one class.
How I can fix it, many thanks.