Reader small image

You're reading from  Master Apache JMeter - From Load Testing to DevOps

Product typeBook
Published inAug 2019
Reading LevelBeginner
Publisher
ISBN-139781839217647
Edition1st Edition
Languages
Right arrow
Authors (3):
Antonio Gomes Rodrigues
Antonio Gomes Rodrigues
author image
Antonio Gomes Rodrigues

Antonio Gomes Rodrigues has been an expert in the field of application performance for more than 10 years. Antonio has significant experience working with load testing tools like JMeter and LoadRunner. He is currently a committer and a PMC member of the JMeter project within the Apache Software Foundation.
Read more about Antonio Gomes Rodrigues

Bruno Demion (Milamber)
Bruno Demion (Milamber)
author image
Bruno Demion (Milamber)

Bruno Demion, better known as Milamber, is a French computer scientist. Since December 2003, he has been working with JMeter to perform load tests in various missions and training courses. He contributes to the JMeter project, in particular on the translation into French of the graphical interface, corrections of anomalies as well as some behaviors (proxy HTTPS, new results tree, icon bar, and so on). He is currently a committer, PMC member and the PMC Chair of the Apache JMeter project within the Apache Software Foundation.
Read more about Bruno Demion (Milamber)

Philippe Mouawad
Philippe Mouawad
author image
Philippe Mouawad

Philippe Mouawad is a technical expert and architect in J2E and web environments in the company Ubik-Ingenierie. He has been using JMeter since 2009. He contributes to the JMeter-Plugins (Redis DataSet, Graphs Generator Listener, and various patches) project. He is currently a committer and a PMC member of the JMeter project within the Apache Software Foundation. He is also a lead developer of the Ubik Load Pack solution.
Read more about Philippe Mouawad

View More author details
Right arrow

Load Testing Web Services

A Few Concepts

Nowadays, more and more applications use web services (https://en.wikipedia.org/wiki/Web_service) for several reasons:

  • To adapt to new constraints
  • To interface mobile applications
  • To interface heterogeneous systems in distributed environments
  • To provide services to partners
  • To avoid tying interfaces to a particular library in a specific language, and so on

This service is frequently used, particularly with the success of microservice architectures (https://en.wikipedia.org/wiki/Microservices). Under the term "web services," several technologies exist, such as WS-\* web services and REST web services. Let's look in more detail at these two technologies.

REST (REpresentational State Transfer) Web Services

To meet certain needs (such as a lower complexity of implementation, reducing the volume of data exchanged and reducing the parsing cost, particularly for mobile applications, and more), REST...

A Few Concepts

Nowadays, more and more applications use web services (https://en.wikipedia.org/wiki/Web_service) for several reasons:

  • To adapt to new constraints
  • To interface mobile applications
  • To interface heterogeneous systems in distributed environments
  • To provide services to partners
  • To avoid tying interfaces to a particular library in a specific language, and so on

This service is frequently used, particularly with the success of microservice architectures (https://en.wikipedia.org/wiki/Microservices). Under the term "web services," several technologies exist, such as WS-\* web services and REST web services. Let's look in more detail at these two technologies.

REST (REpresentational State Transfer) Web Services

To meet certain needs (such as a lower complexity of implementation, reducing the volume of data exchanged and reducing the parsing cost, particularly for mobile applications, and more), REST web services appeared. REST web services are based...

Setup with JMeter

Again, JMeter allows us to easily test web services. We can do it using HTTP Request:

Figure 8.2: HTTP Request

Do not forget to add an HTTP Header Manager with the correct parameters (here, Content-Type is equal to text/xml; charset=utf-8):

Figure 8.3: HTTP Header

Note

Note that JMeter provides the Building a SOAP WebService Test Plan template to speed up the configuration.

Figure 8.4: Building a SOAP WebService Test Plan template

To help us, we can use the excellent SoapUI (https://www.soapui.org/), which generates the message content of our call to the web service from the WSDL.

It even makes it possible to create Mock servers of the web service, allowing us to test it while its implementation is not yet available.

If your teams have already run tests with SoapUI, Postman (https://www.getpostman.com/), Swagger (https://swagger.io/), or any other similar tool, you can save a lot of time by setting JMeter as a proxy in these tools. JMeter...

You have been reading a chapter from
Master Apache JMeter - From Load Testing to DevOps
Published in: Aug 2019Publisher: ISBN-13: 9781839217647
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
undefined
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime

Authors (3)

author image
Antonio Gomes Rodrigues

Antonio Gomes Rodrigues has been an expert in the field of application performance for more than 10 years. Antonio has significant experience working with load testing tools like JMeter and LoadRunner. He is currently a committer and a PMC member of the JMeter project within the Apache Software Foundation.
Read more about Antonio Gomes Rodrigues

author image
Bruno Demion (Milamber)

Bruno Demion, better known as Milamber, is a French computer scientist. Since December 2003, he has been working with JMeter to perform load tests in various missions and training courses. He contributes to the JMeter project, in particular on the translation into French of the graphical interface, corrections of anomalies as well as some behaviors (proxy HTTPS, new results tree, icon bar, and so on). He is currently a committer, PMC member and the PMC Chair of the Apache JMeter project within the Apache Software Foundation.
Read more about Bruno Demion (Milamber)

author image
Philippe Mouawad

Philippe Mouawad is a technical expert and architect in J2E and web environments in the company Ubik-Ingenierie. He has been using JMeter since 2009. He contributes to the JMeter-Plugins (Redis DataSet, Graphs Generator Listener, and various patches) project. He is currently a committer and a PMC member of the JMeter project within the Apache Software Foundation. He is also a lead developer of the Ubik Load Pack solution.
Read more about Philippe Mouawad