Change name of Dump File automatically for each response
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2014
10:23 AM
06-26-2014
10:23 AM
Change name of Dump File automatically for each response
***Repost from the Community Public Forum
Hello,
I'm attempting to use the "Dump File" request property to save the xml response I'm getting. I'd like to have SOAP automatically change the name of the dump file to match the transaction number provided in each response. I've read that it can be done using the property expansion feature, but so far I'm unable to make it work. Can someone share the proper formatting for the Dump File property value? I've been using this:
c:/tools/soapresponse/TDL${ns2:TransactionNumber}.xml
But all it saves is tdl.xml. I'd like it to be TDL123456.xml where 123456 is the transaction number in the response file.
Thanks.
Shane
Hello,
I'm attempting to use the "Dump File" request property to save the xml response I'm getting. I'd like to have SOAP automatically change the name of the dump file to match the transaction number provided in each response. I've read that it can be done using the property expansion feature, but so far I'm unable to make it work. Can someone share the proper formatting for the Dump File property value? I've been using this:
c:/tools/soapresponse/TDL${ns2:TransactionNumber}.xml
But all it saves is tdl.xml. I'd like it to be TDL123456.xml where 123456 is the transaction number in the response file.
Thanks.
Shane
3 REPLIES 3
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2014
02:38 PM
06-26-2014
02:38 PM
Hi Shane,
Unfortunately there seems to be a problem to expand the property in the Dump File field. I have logged a bug for this: SOAP-2639. Sorry for the inconvenience.
As an alternative you could use the DataSink TestStep to save your responses. Please see this article: http://www.soapui.org/Functional-Testing/saving-data-from-your-tests.html
Regards,
Giscard
SmartBear Support
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Unfortunately there seems to be a problem to expand the property in the Dump File field. I have logged a bug for this: SOAP-2639. Sorry for the inconvenience.
As an alternative you could use the DataSink TestStep to save your responses. Please see this article: http://www.soapui.org/Functional-Testing/saving-data-from-your-tests.html
Regards,
Giscard
SmartBear Support
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2019
05:20 AM
10-17-2019
05:20 AM
I have to implement the same thing. I would like increase the number instead of taking the value from response. How to achieve it.
Ex: Dump File loaction is "c:/user/filename1" in next testcase file name should be filename2.
Please help me with this.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2019
06:00 AM
10-17-2019
06:00 AM
Dump file may not solve problem being described.
You can create script to save the file the way you wanted to.
In the below script, use "saveToFile" method can help you. Create a file object and file content and pass them to that method. Use script assertion to the request step.
https://github.com/nmrao/soapUIGroovyScripts/blob/85e6112abadb014cdb2d12ed3fb289cb2eea90af/groovy/Sp...
Regards,
Rao.
You can create script to save the file the way you wanted to.
In the below script, use "saveToFile" method can help you. Create a file object and file content and pass them to that method. Use script assertion to the request step.
https://github.com/nmrao/soapUIGroovyScripts/blob/85e6112abadb014cdb2d12ed3fb289cb2eea90af/groovy/Sp...
Regards,
Rao.
