Monday, 24 December 2018

Run Parameterized JMeter Test in Jenkins

Prerequisites to Run Parameterized Jmeter Test in Jenkins 


Create Parameters in Jenkins


  • Configure an existing/new job > Select 'This Project is Parameterized'



  • Add Parameter > Add 'String Parameter'



  • Define Parameter name and value

  • Add parameter in Maven Goal in Jenkins
clean verify -DthreadCount=$ThreadCount


    threadCount - variable defined in POM.xml
    ThreadCount - varaible defined as Jenkins parameter

    • Save and Build project.

    No comments:

    Post a Comment