Tuesday, 14 March 2017

Easy steps for JMeter - Jenkins Integration

Before, you start the integration process, define the following paths till /bin directory in the environment variables: 
  • JMeter
  • JDK
Once the above configurations are completed, you can proceed with the Jenkins setup as follows:

1. Download the jenkins.war file

2. Open command prompt, navigate till the Jenkins directory where you have placed the WAR file and type the command:- java -jar jenkins.war

Wait till the message appears on your cmd "Jenkins is fully up and running"



3. Open Browser, type localhost:8080, it will open up the default Jenkins dashboard



4. So now, we are going to create a job in Jenkins by clicking at "Create new jobs"

5. Now you need to enter a job name followed by the type of build, for demo purpose we are selecting a free style software project



Once you've successfully created a build, we will test it by running a JMeter script from Jenkins

How to give script path in Jenkins?

Go to build drop down menu, so based on your OS type choose make the selection, we are using Windows OS so we have selected Execute Windows Batch Command



Once the Windows batch command prompt opens, type the following command: 
jmeter -n -t <script path> -l <results path>

Now, you can save the build and proceed with testing :)

Stay tuned for more posts!!!

No comments:

Post a Comment