Extends
Methods
collectResponseMatchScript(repData) → {object}
脚本处理响应结果
Parameters:
Name | Type | Description |
---|---|---|
repData |
object | 响应结果 |
- Source:
Returns:
- Type
- object
(async) isMatchResult(repData) → {boolean}
是否符合预期结果
Parameters:
Name | Type | Description |
---|---|---|
repData |
object |
- Source:
Returns:
- Type
- boolean
(async) matchResultWithTemplate(repData)
判断结果是否满足条件根据, 与httpResponseMatchSuccess
相同
Parameters:
Name | Type | Description |
---|---|---|
repData |
object |
- Source:
resetRequestOptions(url, options) → {object}
通过 script 编程可以修改请求参数
Parameters:
Name | Type | Description |
---|---|---|
url |
string | |
options |
object |
- Source:
Returns:
{url:xxx, options: {}}
- Type
- object
(async) sendHttp(messageId, payload) → {object}
发送http请求
Parameters:
Name | Type | Description |
---|---|---|
messageId |
string | 消息id |
payload |
object | 请求信息载体 |
- Source:
Returns:
响应体的 body
- Type
- object