--
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 https://groups.google.com/group/testng-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/testng-users/7da0d6b5-d01b-425c-b8ed-4f780bae198a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Spend sometime taking a look at this test class within the TestNG codebase: https://github.com/cbeust/testng/blob/master/src/test/java/test/SimpleBaseTest.javaIt has all samples that you would ever need when working with a programmatically created suite xml file.Thanks & Regards
Krishnan Mahadevan
"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/My Technical Scribblings @ https://rationaleemotions.com/
On Tue, May 28, 2019 at 6:47 PM eyal rest <rest...@gmail.com> wrote:
Hi ,--I need to create testng.xml dynamically with code and then run the tests through it,How can I do it ?Thanks
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...@googlegroups.com.
You don’t need to do all of that if all you want is to be able to pass in dynamic values to the parameters that was defined by you in your suite xml.
Take a look at this blog of mine to learn how to do it easily : https://rationaleemotions.com/dynamic_parameterization_in_testng/
Thanks & Regards
Krishnan Mahadevan
"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.com/
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 https://groups.google.com/group/testng-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/testng-users/e59695bf-c23b-43a0-a9b3-bc509f157668%40googlegroups.com.