Home > JMETER, JSON > Using Firebug for extracting JSON Strings for JMETER

Using Firebug for extracting JSON Strings for JMETER


I was running some tests these days, and while checking some page behaviour using Firebug, i noticed a new tab (plugin) called Network. I was amazed to see the power of this small tab.

Basically this is a live monitor of the communication between client and server, returning all the gets/posts that have been exchanged between the two sides, with complete path and payload. For those of us using JSON Strings in our JMeter tests….priceless.

So basically all you have to do whenever you want to check the JSON payload or response, is activate the Network module inside Firebug, and run your test. You will get the whole list of Gets and Posts, including the Post parameters, and the Response (which may include JSON Strings or not, of course)

It looks like this:

Firebug Network Module

Firebug Network Module

Expanding the POST request, will show both POST parameters, and Response Message in the form of a JSON String:

Extract JSON Strings using Firebug

Extract JSON Strings using Firebug

As you can see, there is a POST tab and an Answer tab. I did not print the whole graph, but it is there, and you can just copy and paste those JSON Strings into your JMETER test.

Congrats Firebug…cool isn’t it?

The

About these ads
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: