It can be difficult to debug a simulation script, whatever tool you use. Fortunately, JMeter offers a powerful IDE for debugging these scripts. It is also possible to use plugins.
The easiest way is to use View Results Tree to get the content of queries and responses:
Figure 6.18: View Results Tree
In addition to seeing the content, we can use all the testers available in JMeter.
For every extractor, there is a tester available:
Figure 6.19: List of testers
We can find:
- CSS Selector Tester
- JSON Path Tester
- RegExp Tester
- Boundary Extractor Tester
- XPath2 Tester
- XPath Tester
This allows us to validate our Extractor configuration:
Figure 6.20: RegExp Tester
The trick of using the View Results Tree element is useful, but it would be even better if we only recorded samples that were in error.
This is possible with the Log/Display Only -> Errors option: