Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying JMeter Cookbook
  • Table Of Contents Toc
  • Feedback & Rating feedback
JMeter Cookbook

JMeter Cookbook

By : Erinle
3.6 (8)
close
close
JMeter Cookbook

JMeter Cookbook

3.6 (8)
By: Erinle

Overview of this book

This book is great for you if you are a developer, quality assurance engineer, tester, or test manager who is looking to get a firmer grasp of elementary, deep, and advanced testing concepts using Apache JMeter. It’s assumed you have access to a computer and an Internet connection. No prior testing or programming experience is required, but would be helpful.
Table of Contents (11 chapters)
close
close
10
Index

Using REST Sampler

As we explained in Chapter 4, Testing Services, Representational State Transfer (REST) is an architecture style of designing networked applications that relies on stateless, client-server, cacheable communications protocol (HTTP). It is lightweight and easily testable mainly because all communications between client and server are over HTTP.

More information about REST can be found at http://en.wikipedia.org/wiki/Representational_state_transfer.

How to do it…

In this recipe, we will cover how to test REST web services with the REST Sampler extension. The main feature of this extension is to allow us to interact with services that work only on XML. As such, it allows us to deal with XML payloads easily.

Note

REST Sampler can also be used with a service that consumes and produces JSON.

  1. Download the Extras with Libs set of plugins from http://jmeter-plugins.org/.
  2. Install the plugins by doing the following:
    1. Extract the ZIP archive to the location of your choice.
    2. Copy the ExtrasLibs...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY