fix (接口自动化): 修复Python脚本语法问题

--bug=1006328 --user=赵勇 【github#5787】断言规... https://www.tapd.cn/55049933/s/1042946
This commit is contained in:
fit2-zhao 2021-09-02 11:04:45 +08:00 committed by fit2-zhao
parent 7b1447d2c4
commit 037a115c50
1 changed files with 3 additions and 3 deletions

View File

@ -249,9 +249,9 @@
break;
}
script +=
"\tmsg = \" " + msg + "\";" +
"\tAssertionResult.setFailureMessage(msg);" +
"\tAssertionResult.setFailure(true);";
"\tmsg = \" " + msg + "\"\n" +
"\tAssertionResult.setFailureMessage(msg)" +"\n"+
"\tAssertionResult.setFailure(True)";
this.assertion.desc = desc;
this.assertion.script = script;