Chapter 2. Handling Responses

In this chapter, we will cover the following recipes:

  • Using Regular Expression Extractor
  • Using Regular Expression Tester
  • Using CSS/jQuery Extractor
  • Using XPath Extractor
  • Dealing with file downloads
  • Handling XML responses
  • Handling JSON responses
  • Handling HTML responses
  • Using Response Assertion
  • Using Duration Assertion
  • Uploading files with your scripts

Introduction

When testing applications, it is important to know how to handle the responses from the several requests that constitute the test script. In this chapter, we will tackle how to deal with various server responses for applications under test. These include handling XML, JSON, and HTML responses. It's even more important to know how to extract information contained in those ...

Get JMeter Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.