O'Reilly logo

JMeter Cookbook by Bayo Erinle

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required