E.g: I have a simple parameter username which i want to get using
@Parameters annotation.
All other parameters e.g a,b,c,d I want to take from data provider.
I created data provider named "Fetch Data" in my framework.
and Test method as below:
@Parameters("username")
@Test (groups={"Smoke","Contacts"}, dataProvider = "Fetch Data")
public void test_method1(String username, String a, String b, String
c, String d) throws Exception {
bla bla bla ;
}
The above method gives error message saying
org.testng.TestNGException:
Number of parameter values passed in using data provider is less than
number of parameters defined on test method and TestNG is unable in
inject a suitable object
Hence, I wanted to know how to differentiate that username is the
parameter coming from @Parameters annotation ?
Thanks,
Pavithra
Pavithra
--
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.
--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/testng-users/-/s1W9FPe3KtAJ.
-Paul
--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/testng-users/-/Awkwb-nrArUJ.
--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users...@googlegroups.com.
To post to this group, send email to testng...@googlegroups.com.
Visit this group at http://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.