The Debug sampler

The debug sampler generates a sample containing all the values of JMeter variables and/or properties. A View Results Tree listener must be present in the test plan to view its results. This nifty component helps you debug your test plans appropriately, providing you with the tools to analyze the runtime-assigned values of various variables during test execution. In our example above, suppose we added a Regular Expression Extractor post processor to the /itunes/charts sampler and stored it in a variable. We can view the value assigned to the variable, and more importantly how to get to the different values if there is more than one match. To add a Debug sampler, right-click on Thread Group and navigate to Add | Sampler | Debug ...

Get Performance Testing with JMeter 2.9 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.