[英]How to use one REST API RESPONSE property, and use it in another REST API header property
我想知道如何将财产从一个 REST API 转移到另一个 REST ZDB974238714CA8DE634A7ACE
I worked on the property transfer with the JSON format, but I need to know how to transfer the one REST API response property and use it in the header?
让我用下面的场景解释一下:
Authorization Header
设置为Basic
)要在soapUI 中完成这些步骤,您必须:
TestCase
的Custom Properties
中定义apiKey
Groovy
步骤将apiKey
属性保存到TestCase.apiKey
Basic ${=(testCase.getPropertyValue("apiKey")+":").bytes.encodeBase64()}
在您的巢REST Request
步骤中重用TestCase.apiKey
希望有帮助
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.