admin管理员组文章数量:1125611
I am using the .getPropertyValue('Request') method to collect the XML request from the SOAP request test step, but the problem is that the SOAP request contains a number of placeholders like so:
<udidi:identifier>
<commondevice:DICode>${#TestSuite#UDI_CODE_AND_BLOCKS}</commondevice:DICode>
<commondevice:issuingEntityCode>${#TestSuite#ISSUING_ENTITY_UDI_DI}</commondevice:issuingEntityCode>
</udidi:identifier>
And when getting the request using this method the placeholders are not populated with their appropriate data, but instead just the placeholders are presented instead of the data.
I am using this method because I am triggering the scripts from another script.
If I use my usual method of this:
context.expand( '${MASTER_MDR_REQUEST_CONTAINER#Request}' )
Then the placeholders are loaded correctly, but when calling the script from another script , this method returns a null.
Is the any way to get the placeholders to be populated by their appropriate data using the .getPropertyValue method or similar method?
I am using the .getPropertyValue('Request') method to collect the XML request from the SOAP request test step, but the problem is that the SOAP request contains a number of placeholders like so:
<udidi:identifier>
<commondevice:DICode>${#TestSuite#UDI_CODE_AND_BLOCKS}</commondevice:DICode>
<commondevice:issuingEntityCode>${#TestSuite#ISSUING_ENTITY_UDI_DI}</commondevice:issuingEntityCode>
</udidi:identifier>
And when getting the request using this method the placeholders are not populated with their appropriate data, but instead just the placeholders are presented instead of the data.
I am using this method because I am triggering the scripts from another script.
If I use my usual method of this:
context.expand( '${MASTER_MDR_REQUEST_CONTAINER#Request}' )
Then the placeholders are loaded correctly, but when calling the script from another script , this method returns a null.
Is the any way to get the placeholders to be populated by their appropriate data using the .getPropertyValue method or similar method?
Share Improve this question edited 2 days ago Armen Cholakian asked 2 days ago Armen CholakianArmen Cholakian 11 bronze badge New contributor Armen Cholakian is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.1 Answer
Reset to default 0Solved! Brought in the XML requests into the script and this prevents the issue from occuring.
本文标签:
版权声明:本文标题:groovy - SOAP UI - Using the command .getPropertyValue('Request') loads the XML request but not the placeholder 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736644750a1946076.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论