testng - How can we pass a single test method as parameter in jenkins? -
in testng file have
<test name="tests" parallel="false"> <classes> <class name="packagename.testplanname"> <methods> <include name="testmethod"></include> </methods> </class> </classes> </test>
how can pass testplanname , testcase name parameters in jenkins? use maven.
if want execute entire class test methods can use
mvn test -dtest=testplanname
if want execute particular test in class
mvn test -dtest=testplanname#testmethod