Forum Discussion
btmuc
New Contributor
Hi Ole,
yes, I'm talking about SOAP Mock Response test steps.
I've just double-checked:
Putting
<cus:TransactionId>${#TestCase#TransactionId}</cus:TransactionId>
in the XML of the response of a Mock Response test step yields
<cus:TransactionId></cus:TransactionId>
As a work-around I've used this line in the script of the Mock Response test step
context.setProperty('TransactionId',context.testCase.getPropertyValue('TransactionId'))
and modified the above XML code to
<cus:TransactionId>${TransactionId}</cus:TransactionId>
This yields
<cus:TransactionId>D0780100027579</cus:TransactionId>
Thus I know that the test case property 'TransactionId' has been properly set.
Perhaps I've hit a bug. I'm using 3.6.1 Open Source Edition.
Cheers
M
yes, I'm talking about SOAP Mock Response test steps.
I've just double-checked:
Putting
<cus:TransactionId>${#TestCase#TransactionId}</cus:TransactionId>
in the XML of the response of a Mock Response test step yields
<cus:TransactionId></cus:TransactionId>
As a work-around I've used this line in the script of the Mock Response test step
context.setProperty('TransactionId',context.testCase.getPropertyValue('TransactionId'))
and modified the above XML code to
<cus:TransactionId>${TransactionId}</cus:TransactionId>
This yields
<cus:TransactionId>D0780100027579</cus:TransactionId>
Thus I know that the test case property 'TransactionId' has been properly set.
Perhaps I've hit a bug. I'm using 3.6.1 Open Source Edition.
Cheers
M
HeikoStudt
10 years agoOccasional Contributor
I had the same problem in SoapUI 5.1.2
MFG (Best Regards)
Heiko Studt
Related Content
- 6 years ago
- 13 years ago
Recent Discussions
- 15 years ago