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

Uploading files with your scripts

Uploading files is a common functionality in web applications. Social networks, for example, encourage you to upload a profile picture when registering for an account. Attaching files to e-mails is also a fairly common routine task. Services such as Dropbox allow you to upload multiple files through their web and platform-native applications. JMeter allows you to test such applications by providing a mechanism to upload files as part of your test plan. In this recipe, we will cover how to upload files with JMeter.

How to do it…

Perform the following steps to upload files with your scripts:

  1. Launch JMeter.
  2. Add HTTP(S) Test Script Recorder by navigating to WorkBench | Add | Non-Test Elements | HTTP Mirror Server and ...

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