Book Image

Jenkins Essentials - Second Edition

By : Mitesh Soni
Book Image

Jenkins Essentials - Second Edition

By: Mitesh Soni

Overview of this book

<p>In agile development practices, developers need to integrate their work frequently to fix bugs or to create a new feature or functionality. Jenkins is used specifically for Continuous Integration, helping to enforce the principles of agile development. This book focuses on the latest and stable release of Jenkins (2.5 and later), featuring the latest features, such as Pipeline as Code, the new setup experience, and the improved UI. With the all-new Pipeline as Code feature, you will be able to build simple or advanced pipelines easily and rapidly, hence improving your teams' productivity.</p> <p>This book begins by tackling the installation of the necessary software dependencies and libraries you'll need to perform Continuous Integration for a Java application. From there, you'll integrate code repositories, applications, and build tools for the implementation of Continuous Integration.</p> <p>Finally, you will also learn how to automate your deployment on cloud platforms such as AWS and Microsoft Azure, along with a few advanced testing techniques.</p>
Table of Contents (17 chapters)
Title Page
Credits
About the Author
About the Reviewers
www.PacktPub.com
Customer Feedback
Dedication
Preface

Load testing with Apache JMeter


Apache JMeter is an open source Apache project. It is a pure Java application. Apache JMeter is used to load test, in order to analyze and measure the performance of services.

Download Apache JMeter from http://jmeter.apache.org/download_jmeter.cgi. Extract the files and go to the bin directory. Execute jmeter.bat or jmeter.sh.

  1. Open the Apache JMeter console. Create a Test Plan.
  2. Right-click on the Test Plan and click on Add; select Threads (Users).
  3. Select Thread Group.
  4. Provide Thread Group name.
  5. In Thread Group properties, provide Number of Threads, Ramp-up Period, and Loop Count.
  6. Right-click on Thread Group. Click on Add. Click on Sampler. Click on HTTP Request.
  7. In HTTP Request, provide Server Name or IP. In our case, it will be localhost or an IP address.
  8. Give the Port Number where your web server is running.
  1. Select the Get method and provide a path to the load test:

Create an HTTPRequest in APache JMeter to configure Server Name, Port number, and method details

  1. Save...