fix(接口测试): 修复优化参数值打开弹窗禁用&修改pyhon3脚本案例
This commit is contained in:
parent
6705ae6a7d
commit
9c245c4934
|
@ -232,6 +232,7 @@
|
||||||
@click.stop="openParamSetting"
|
@click.stop="openParamSetting"
|
||||||
/>
|
/>
|
||||||
<MsIcon
|
<MsIcon
|
||||||
|
v-if="!props.disabled"
|
||||||
type="icon-icon_full_screen_one"
|
type="icon-icon_full_screen_one"
|
||||||
class="ms-params-input-suffix-icon ml-[8px]"
|
class="ms-params-input-suffix-icon ml-[8px]"
|
||||||
@click.stop="emit('setParams')"
|
@click.stop="emit('setParams')"
|
||||||
|
|
|
@ -688,15 +688,15 @@ with urllib.request.urlopen(request) as response:
|
||||||
status_code = response.getcode()
|
status_code = response.getcode()
|
||||||
log.info(f"Status Code: {status_code}")`,
|
log.info(f"Status Code: {status_code}")`,
|
||||||
postOperation: `# 获取 HTTP 请求的响应数据
|
postOperation: `# 获取 HTTP 请求的响应数据
|
||||||
responseData = prev.getResponseDataAsString();
|
responseData = prev.getResponseDataAsString()
|
||||||
|
|
||||||
# 输出响应数据到控制台
|
# 输出响应数据到控制台
|
||||||
log.info("Response Data: " + responseData);
|
log.info("Response Data: " + responseData)
|
||||||
vars.put("variable_name", "variable_value");
|
vars.put("variable_name", "variable_value")
|
||||||
|
|
||||||
# 你可以进一步处理响应数据
|
# 你可以进一步处理响应数据
|
||||||
# 例如:保存响应数据到变量
|
# 例如:保存响应数据到变量
|
||||||
vars.put("responseData", responseData);`,
|
vars.put("responseData", responseData)`,
|
||||||
assertion: `# 获取响应状态码
|
assertion: `# 获取响应状态码
|
||||||
response_code = prev.getResponseCode()
|
response_code = prev.getResponseCode()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue