fix(接口自动化): 修复生成测试报告 失败继续 功能失效问题

This commit is contained in:
fit2-zhao 2021-08-04 18:55:44 +08:00 committed by fit2-zhao
parent 4add022e46
commit 05eaf57b11
2 changed files with 2 additions and 1 deletions

View File

@ -309,7 +309,7 @@ public abstract class MsTestElement {
}
public String getFullIndexPath(MsTestElement element, String path) {
if (element.getParent() == null) {
if (element == null || element.getParent() == null) {
return path;
}
path = element.getIndex() + "_" + path;

View File

@ -724,6 +724,7 @@ export default {
type: "scenario",
variables: this.currentScenario.variables,
referenced: 'Created',
onSampleError: this.onSampleError,
enableCookieShare: this.enableCookieShare,
headers: this.currentScenario.headers,
environmentMap: this.projectEnvMap,