fix(接口测试): 修复优化参数值打开弹窗禁用&修改pyhon3脚本案例

This commit is contained in:
xinxin.wu 2024-08-13 10:58:21 +08:00 committed by 刘瑞斌
parent 6705ae6a7d
commit 9c245c4934
2 changed files with 5 additions and 4 deletions

View File

@ -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')"

View File

@ -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()