fix(接口测试): 场景断言js脚本断言的脚本案例中失败原因的字符串格式化使用引号错误
This commit is contained in:
parent
aa0f7f0a00
commit
f1358a55de
|
@ -628,7 +628,7 @@ vars.put("responseData", responseData);`,
|
|||
'if (responseCode != expectedCode) {\n' +
|
||||
' AssertionResult.setFailure(true);\n' +
|
||||
// eslint-disable-next-line no-template-curly-in-string
|
||||
' AssertionResult.setFailureMessage("Expected response code: ${expectedCode}, but got: ${responseCode}")\n' +
|
||||
' AssertionResult.setFailureMessage(`Expected response code: ${expectedCode}, but got: ${responseCode}`)\n' +
|
||||
'}\n',
|
||||
scenario: `// 导入必要的 Java 类
|
||||
var URL = java.net.URL;
|
||||
|
|
Loading…
Reference in New Issue