Question on Data Driven....

15 views
Skip to first unread message

Manjunath Bellur

unread,
Apr 26, 2011, 7:39:42 AM4/26/11
to Cédric Beust ♔, testng...@googlegroups.com
Hi,
  I have a scenario where I want to use Data driven concept and want to re-run the failed testcases.

Here is the example.

public Object[] datamethod () {

//data is below
x;
y;
z;
return
}

@Test (dataprovider....)
public void myTest (String data) {

}

Now, I am passing 3 data to myTest (x, y and z). Suppose the testcase passes for data X, Z and fails for data Y. How do I re-run the tescases only with value Y. Is there a possibility.

Thanks and Regards
Manjunath

Manjunath Bellur

unread,
Apr 26, 2011, 7:41:32 AM4/26/11
to ced...@beust.com, testng...@googlegroups.com
With proper email ID for cedric :)

syed ameen

unread,
Apr 26, 2011, 8:13:06 AM4/26/11
to testng...@googlegroups.com
Hi,

This same questions drops in yesterday and Cedric has answered for it. TestNG's "testng-failed.xml" will have the failed test instance.

You can rerun the failed.xml file.

Thanks,
Syed

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To post to this group, send email to testng...@googlegroups.com.
To unsubscribe from this group, send email to testng-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/testng-users?hl=en.

Manjunath Bellur

unread,
Apr 27, 2011, 5:49:23 AM4/27/11
to testng...@googlegroups.com
Thanks :)
Reply all
Reply to author
Forward
0 new messages