Skip to content

Commit

Permalink
fix(测试计划): 修复测试计划包含失败停止的场景大规模执行,偶发有未执行场景问题
Browse files Browse the repository at this point in the history
  • Loading branch information
fit2-zhao committed May 11, 2023
1 parent 9d71894 commit 127e7e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public ThreadGroup getThreadGroup() {
threadGroup.setProperty(ThreadGroup.ON_SAMPLE_ERROR, ThreadGroup.ON_SAMPLE_ERROR_CONTINUE);
threadGroup.setScheduler(false);
if (onSampleError != null && !onSampleError) {
threadGroup.setProperty("ThreadGroup.on_sample_error", "stoptest");
threadGroup.setProperty("ThreadGroup.on_sample_error", "stopthread");
}
threadGroup.setSamplerController(loopController);
return threadGroup;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ public static HashTree generateHashTree(ApiScenarioWithBLOBs item, Map<String, S

HashTree jmeterHashTree = new HashTree();
MsTestPlan testPlan = new MsTestPlan();
testPlan.setName(runRequest.getReportId());
testPlan.setHashTree(new LinkedList<>());
try {
MsThreadGroup group = new MsThreadGroup();
Expand Down

0 comments on commit 127e7e5

Please sign in to comment.