Vidya Shankar NS
Vidya Shankar NS

Reputation: 59

Test method is skipped even though the dependsOnGroups method is passed

I have the following structure in testng.xml

<test name="test">
<groups>
<run>
<include name ="E"/>
<include name ="Sanity"/>
</run>
<groups/>
<classes>
<class name="com.test.testcases.Test2"/>
<class name="com.test.testcases.Test1"/>
</classes>
</test>

Test2 belongs to group Sanity and Test1 belongs to group E. The test method in group "Sanity" depends on the test method in group "E". I have used dependsOnGroups as both the methods are in different classes. Now, on running the suite, I see that the test method in Test2 is skipped even though Test1 has passed. Could anyone help in this regard?

Upvotes: 0

Views: 226

Answers (1)

Vidya Shankar NS
Vidya Shankar NS

Reputation: 59

There was an error in the dataprovider name that was given for the skipped method which was not shown earlier.

Upvotes: 0

Related Questions