Hello, massive thanks for what you are doing! Easy, clear, great! Btw, you do not need to create the file for Simple Data file on your computer in the beginning. Just when you click Button Browse, choose where to create the file, and write the name of the file into the field File name. Basically, it's the same window. Then click the button Open - it automatically creates the file on your computer.
How do you get the time stamp column in the csv/xls file to display correctly instead of an exponential number? I tried saving the file after formatting the column as a date and other types but that did not work.
Indrajit In JMeter, create a custom listener with a specific column by using BeanShell or JSR223 PostProcessor and a script. Steps: Add a PostProcessor: Attach a JSR223 PostProcessor to your sampler. Extract the Key Value: Use a script like this to get the desired key from the response: groovy def keyValue = new groovy.json.JsonSlurper().parseText(prev.getResponseDataAsString()).yourKey vars.put("customKey", keyValue) Create a Listener: Add a Simple Data Writer or View Results in Table. Use ${customKey} to add your custom column in the listener output. -
Thanks a lot taking time and creating videos for community and helping the people . small suggestion from my side while you are explaining the reports ,could you please explain about terminology like what is throughput ...
Thank you, another good tutorial, thx for that :)
Most welcome
Hello, massive thanks for what you are doing! Easy, clear, great!
Btw, you do not need to create the file for Simple Data file on your computer in the beginning. Just when you click Button Browse, choose where to create the file, and write the name of the file into the field File name. Basically, it's the same window. Then click the button Open - it automatically creates the file on your computer.
Thanks for adding Eka
How do you get the time stamp column in the csv/xls file to display correctly instead of an exponential number? I tried saving the file after formatting the column as a date and other types but that did not work.
Hi, this will help ruclips.net/video/r6-H5ufOvv4/видео.html
@@RaghavPal Thank You!!
Muchas Gracias por la explicación, muy buena.
Saludos desde México
Muy bienvenido
Thanks for detail tutorial, its useful and easy to understand
You are welcome
How to create a listener with my own custom column? (e.g. value of particular key from the reaponse)
Indrajit
In JMeter, create a custom listener with a specific column by using BeanShell or JSR223 PostProcessor and a script. Steps:
Add a PostProcessor:
Attach a JSR223 PostProcessor to your sampler.
Extract the Key Value: Use a script like this to get the desired key from the response:
groovy
def keyValue = new groovy.json.JsonSlurper().parseText(prev.getResponseDataAsString()).yourKey
vars.put("customKey", keyValue)
Create a Listener:
Add a Simple Data Writer or View Results in Table.
Use ${customKey} to add your custom column in the listener output.
-
@@RaghavPal i have created the variable. but can't find where to add it in listener output. there is no option to add any column
Indrajit
Add Custom Column in Listener Output:
Simple Data Writer:
Add Simple Data Writer Listener.
Configure CSV Output in Preferences: Add ${customKey} to output fields.
JSR223 Listener (Custom File):
groovy
def writer = new FileWriter("custom_results.csv", true)
writer.write("${prev.getSampleLabel()}, ${vars.get('customKey')}
")
writer.close()
Label Workaround:
groovy
sampler.setName(sampler.getName() + " | ${vars.get('customKey')}")
Key appears in Label column
Done!
Thanks a lot taking time and creating videos for community and helping the people .
small suggestion from my side while you are explaining the reports ,could you please explain about terminology like what is throughput ...
Sure, I will elaborate on this
thank you
You're welcome
Thanks
Hello,Can you create video & explain Backend listener in details ?
I will check and plan Jay
In view result tree I'm getting error , So How to validate it?
will need to check the error and logs Deepak
@@RaghavPal Which listener is good for to show dev team ,which error ?
Any tabular listener with all details needed will be good