Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • JMeter Cookbook
  • Toc
  • feedback
JMeter Cookbook

JMeter Cookbook

By : Erinle
3.6 (8)
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
10
Index

Using script languages within test plans


JSR223 PostProcessor allows you to use precompiled scripts within test plans. The fact that the scripts are compiled before they are actually used brings a significant performance boost compared to their inline counter parts. This also allows a variety of scripting languages to be used including Java, groovy, beanshell, jexl, and so on, allowing us to harness the powerful language features in those languages within our test plan.

JSR223 components could, for example, help us tackle preprocessor or postprocessor elements, samplers, or completed or logical loops within our test plans, allowing us to have more control over how elements are extracted from responses and stored as JMeter variables.

How to do it…

In this recipe, we will see how to use a JSR223 postprocessor within our test plan. We have chosen groovy (http://groovy.codehaus.org/) as our choice of scripting language, but any of the other supporting languages will do. Perform the following steps...

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