Solved

JMeter - how to store SOAP response to a variable?

Posted on 2011-03-10
4
1,004 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

Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
The viewer will learn how to successfully download and install the SARDU utility on Windows 8, without downloading adware.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

910 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now