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 

Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo