[英]How to read the REST request in soapui using java/groovy
For Example: 例如:
I want to read these REST matrix request using Java or groovy. 我想使用Java或groovy读取这些REST矩阵请求。
What could be the possible solution? 有什么可能的解决方案?
You need to check where they are the properties. 您需要检查它们在哪里。 You review the attachment.
您查看附件。
You follow this steps: 您请按照下列步骤操作:
//Print all properties
log.info testRunner.testCase.getTestStepByName('NAME_TESTSTEP').getPropertyList().name;
log.info testRunner.testCase.getTestStepByName('NAME_TESTSTEP').getPropertyList().value;
//Get value propertie
def value_property = testRunner.testCase.getTestStepByName('NAME_TESTSTEP').getPropertyValue('NAME_PROPERTY');
//Print Get value propertie
log.info value_property
//Set value Property
testRunner.testCase.getTestStepByName('NAME_TESTSTEP').setPropertyValue('NAME_PROPERTY','VALUE');
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.