16 years ago
Transfering a ResponseId to a new Request.
Hello all soapUI developers;
I'm doing a soapUI project Testcase for run a script in a Maven system. I already created all the java code and wsdl struct and I'm able to test the request test manually and see the rigth response.
Using the TestSuite Editor of soapUI 3.5 I've got some doubt (question) to run my test project.
I created a TestCase in TestSuite with several TestSteps but I need to get a value response from a TestCase "messagesend" and put in another TestStep like a input.
To be more clear my first TestStep request is:
IGOR
+351968183413
SAFER Message Test Body - Igor 123
smartMessage
10
And my Testcase Response is:
221 (smsId - response value that i need to transfer)
The testcase above is a smsmessage sent and return the smsid( from a DB pk).
But I have a new TestStep that need the smsid response from the previus test:
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sms="http://smssendservice.notification.edisoft.pt/">
? (smsId - input value that i need to get from previus test)
____________________________________________________________________________________________
I already tried use the Property Transfer trying to use a XPath expression (/*[local-name()='Envelope' and namespace-uri()='http://schemas.xmlsoap.org/soap/envelope/']/*[local-name()='Body' and namespace-uri()='http://schemas.xmlsoap.org/soap/envelope/'][1]/*[local-name()='sendSmsResponse' and namespace-uri()='http://smssendservice.notification.edisoft.pt/'][1]/return[1]) and put in a Property value.
After this I can't put the new propertie value in the new TestStep input.
[glow=red,2,300]Is there anyone to help to fix it?[/glow] Loocks really simple but when I run the TestSuit the soapUI merge all the request expression in property value.
Thanks and best Regards
Igor Murta
I'm doing a soapUI project Testcase for run a script in a Maven system. I already created all the java code and wsdl struct and I'm able to test the request test manually and see the rigth response.
Using the TestSuite Editor of soapUI 3.5 I've got some doubt (question) to run my test project.
I created a TestCase in TestSuite with several TestSteps but I need to get a value response from a TestCase "messagesend" and put in another TestStep like a input.
To be more clear my first TestStep request is:
And my Testcase Response is:
The testcase above is a smsmessage sent and return the smsid( from a DB pk).
But I have a new TestStep that need the smsid response from the previus test:
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sms="http://smssendservice.notification.edisoft.pt/">
____________________________________________________________________________________________
I already tried use the Property Transfer trying to use a XPath expression (/*[local-name()='Envelope' and namespace-uri()='http://schemas.xmlsoap.org/soap/envelope/']/*[local-name()='Body' and namespace-uri()='http://schemas.xmlsoap.org/soap/envelope/'][1]/*[local-name()='sendSmsResponse' and namespace-uri()='http://smssendservice.notification.edisoft.pt/'][1]/return[1]) and put in a Property value.
After this I can't put the new propertie value in the new TestStep input.
[glow=red,2,300]Is there anyone to help to fix it?[/glow] Loocks really simple but when I run the TestSuit the soapUI merge all the request expression in property value.

I don't know if it's clear but feel free to ask...
Thanks and best Regards
Igor Murta