JMeter Binary Data response

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

JMeter Binary Data response

Nayak, Soumya R.
Hi All,

I am using Apache JMeter 3.3.
I have a HTTP request which gives a binary data in response. From that binary data I need to extract a value.

If I am sending the request using POSTMAN then POSTMAN is downloading the binary data as a file and opening that file we get the content.
So how it can be handled in JMeter? Please help.

Regards,
SOumya

******************************************************************************************
This message may contain confidential or proprietary information intended only for the use of the
addressee(s) named above or may contain information that is legally privileged. If you are
not the intended addressee, or the person responsible for delivering it to the intended addressee,
you are hereby notified that reading, disseminating, distributing or copying this message is strictly
prohibited. If you have received this message by mistake, please immediately notify us by
replying to the message and delete the original message and any copies immediately thereafter.

If you received this email as a commercial message and would like to opt out of future commercial
messages, please let us know and we will remove you from our distribution list.

Thank you.~
******************************************************************************************
FAFLD
Reply | Threaded
Open this post in threaded view
|

Re: JMeter Binary Data response

glinius@live.com
You can apply the same approach for your JMeter test, in JMeter you have
Save Responses to a file
<http://jmeter.apache.org/usermanual/component_reference.html#Save_Responses_to_a_file>  
listener which can be used to store response data as a file on the file
system. See  Performance Testing: Upload and Download Scenarios with Apache
JMeter
<https://www.blazemeter.com/blog/how-performance-test-upload-and-download-scenarios-apache-jmeter>  
article for more information on how you can simulate file download event in
JMeter test.

The value can be extracted using either  Regular Expression Extractor
<http://jmeter.apache.org/usermanual/component_reference.html#Regular_Expression_Extractor>  
(if it can be located as a plain text). If the file is binary you might need
to  Apache Tika <https://tika.apache.org/>   library and Groovy scripting to
parse the file and extract the "interesting" value. See  How to Extract Data
From Files With JMeter
<https://www.blazemeter.com/blog/what-every-performance-tester-should-know-about-extracting-data-files-jmeter>  
for more details.



--
Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: JMeter Binary Data response

Shone, Larry (IT Professional Services)
This does not appear to be obviously something I have asked for.
Can you perhaps give me a little more as to why I have been included in the list?

-----Original Message-----
From: [hidden email] [mailto:[hidden email]]
Sent: 12 February 2018 06:38
To: [hidden email]
Subject: Re: JMeter Binary Data response

You can apply the same approach for your JMeter test, in JMeter you have Save Responses to a file <http://jmeter.apache.org/usermanual/component_reference.html#Save_Responses_to_a_file>
listener which can be used to store response data as a file on the file system. See  Performance Testing: Upload and Download Scenarios with Apache JMeter <https://www.blazemeter.com/blog/how-performance-test-upload-and-download-scenarios-apache-jmeter>
article for more information on how you can simulate file download event in JMeter test.

The value can be extracted using either  Regular Expression Extractor <http://jmeter.apache.org/usermanual/component_reference.html#Regular_Expression_Extractor>
(if it can be located as a plain text). If the file is binary you might need
to  Apache Tika <https://tika.apache.org/>   library and Groovy scripting to
parse the file and extract the "interesting" value. See  How to Extract Data From Files With JMeter <https://www.blazemeter.com/blog/what-every-performance-tester-should-know-about-extracting-data-files-jmeter>
for more details.



--
Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]



This message has been scanned by Capita systems, but if you believe it to be spam, please send it to [hidden email].

Messages sent to [hidden email] are queued for email analysis by Forcepoint Threat Lab.


This email is security checked and subject to the disclaimer on web-page: http://www.capita.co.uk/email-disclaimer.aspx

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]