Trying to do parameterization using @Parameters annotation and testNG.xml

21 views
Skip to first unread message

sweta pandey Sony

unread,
Aug 22, 2016, 12:57:54 PM8/22/16
to testng-users
Please find the attached files. I am trying to do parameterization using testNG.xml, I defined 3 parameters in 3 different tests of a suite in testNG.xml. And in my class file I tried to retrieve the parameters based on there value. But every time the third parameter is being returned from the testNG.xml.
Please look into my code once and help me understand my mistake. I am a beginner for testNG and I have been trying to resolve this issue since weeks, but failed all the time.
Please help
TestJava.java
testng.xml

Aniket Mane

unread,
Aug 22, 2016, 8:49:33 PM8/22/16
to testng...@googlegroups.com
Hi Sweta,
I have tried with your code and xml but its working fine.
Please see my attached screenshot.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to testng...@googlegroups.com.
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.



--
Thanks,
Aniket
TestNG.png

Panikera Raj

unread,
Aug 23, 2016, 1:11:16 AM8/23/16
to testng...@googlegroups.com
Hi Sweta,

Looks like it's fine, it is working as expected.

Regards,
Panikera
Reply all
Reply to author
Forward
0 new messages