Is there a good way to debug my BSF Sampler written in JavaScript using Jmeter? For instance, using console.log() in the browser is often used. Is there a method like that where I can see the output in Jmeter?
JavaScript can use the logger from JMeter and its log levels e.g. debug, info
try:
log.info("Hello World!");
you can use the print()
command for this. It will write to the Jmeter console.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With