Is there a good way to debug my BSF Sampler written in JavaScript using Jmeter? For example, console.log () is often used in a browser. Is there a way like this where I can see the output in Jmeter?
JavaScript can use the logger from JMeter and its log levels, for example. debug, info
to try:
log.info("Hello World!");
for this you can use the print() command. It will be recorded to the Jmeter console.
print()
You can put calls on OUT.println in your javascripts in BSF Sampler, BSF PreProcessor, BSF PostProcessor. This will write the lines to the jmeter console window. For instance:
OUT.println("hello world");
Source: https://habr.com/ru/post/899720/More articles:Can I use System.Web.UI.Page.ClientScript in ASp.Net MVC? - asp.net-mvc-3@EJB Working with annotation for remote calling? - dependency-injectionAda / C / ++ Distributed Applications - adaStatement of Switching to C - cUndefined reference to a static member of a function pointer in C ++, what am I doing wrong? - c ++https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/899721/weakreference-doesnt-returns-null-though-there-are-no-strong-references-to-the-actual-reference-object&usg=ALkJrhgCGgdanxUWD-eJkhQ4NOGVCfLdigprinting house for developers - cssJquery bxslider plugin centering - jqueryGetting the Kinect SDK for working with visual studio 2010 in C ++ - c ++by enumeration and bitwise operation - c ++All Articles