You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jmeter.apache.org by "LeiYangGH (via GitHub)" <gi...@apache.org> on 2023/03/02 07:12:01 UTC

[GitHub] [jmeter] LeiYangGH opened a new issue, #5783: How to save custom sample results?

LeiYangGH opened a new issue, #5783:
URL: https://github.com/apache/jmeter/issues/5783

   ### The documentation URL
   
   https://jmeter.apache.org/usermanual/jmeter_tutorial.html
   
   ### Feedback
   
   How to save custom sample results?
   
   I've read the documentation and searched a lot on 'jmeter plugins', but not found any useful answer.
   I created `MySamplerGui extends AbstractSamplerGui` and `MySampler extends AbstractSampler`, and I want to have additional result fields that want to to show in the commandline summary, and the 'summary report' listener. For example, my service under test is an audio service that responses http multip parts that can either be audio or other text information. The audioLatency is time when first part of audio returned, despite the built in `latency` which means time of first part.
   
    So I also created `MySampleResult extends SampleResult` and declared the new properties, and have `MySampleResult sample(Entry entry)` in `MySampler`.
   Now I'm able to add my sampler to test plan in gui mode but when adding a 'summary report', I cannot see my additioanl properties, nor can I enable them in the 'Sample Result Save Configuration' dialog. seems this 'summary report' listener cannot automatically show custom properties.
   
   Could anyone tell me the methods to get my custom fields in console and csv summary? Or tell me if it is impossible without modifying existing jmeter implementation. thanks!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@jmeter.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [jmeter] LeiYangGH commented on issue #5783: How to save custom sample results?

Posted by "LeiYangGH (via GitHub)" <gi...@apache.org>.
LeiYangGH commented on issue #5783:
URL: https://github.com/apache/jmeter/issues/5783#issuecomment-1452912030

   I searched and found [sample_variables](https://jmeter.apache.org/usermanual/listeners.html#sample_variables) may be the closest feature, but I didn't find a way to set the value in custom sampler.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@jmeter.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org