Solved

JMeter - how to store SOAP response to a variable?

Posted on 2011-03-10
4
1,007 Views
Last Modified: 2013-11-18
Is there any way to store SOAP responses to a variable instead of writing to a file using listeners?
If there isn't, what is the best method to save the responses?

I am currently testing a system that returns a SOAP (webservice) response that contains a value which i need to retrieve.

I tried setting up listeners that save the response to a file and split it with __stringfromfile and __split but that didn't work and was super-cumbersome.

I don't know how to use XPath...

Any advice will be appreciated.

Thanks.
0
Comment
Question by:WeirdHero
  • 2
4 Comments
 

Author Comment

by:WeirdHero
ID: 35113321
The reason i didn't use __FileFromString is because then i get a compile error from JMeter when trying to run the test plan.
The log file says the file cannot be found (even when i tried to put a dummy file in place)...
0
 

Accepted Solution

by:
WeirdHero earned 0 total points
ID: 35121180
Problem solved by using XPath post processor or __XPath function (if you need to read from a file).
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Image Deployment Tool 9 86
People Counting Software 2 160
Problem to picture file 3 73
Facebook React and SyntheticEvents 6 67
Skype is a P2P (Peer to Peer) instant messaging and VOIP (Voice over IP) service – as well as a whole lot more.
Learn how ViaSat reduced average response times for IT incidents from 10 minutes to 30 seconds.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Viewers will learn how to use the Hootsuite Dashboard.

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question