Skip to content

Commit

Permalink
fix: 删除报告地址多处斜杠的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
liuruibin committed Aug 1, 2024
1 parent 6d22818 commit 7cd68db
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ private static void log(String msg) {
public static boolean runTestPlan(Run<?, ?> run, MeterSphereClient meterSphereClient, String testPlanId, String projectId, String endpoint) throws InterruptedException {
log("测试计划开始执行");
String id = meterSphereClient.exeTestPlan(testPlanId);
log("生成测试报告id:" + id);
log("生成测试报告id: " + id);
boolean flag = true;
boolean state = true;
while (state) {
Expand Down Expand Up @@ -57,7 +57,7 @@ public static boolean runTestPlan(Run<?, ?> run, MeterSphereClient meterSphereCl
String shareUrl = meterSphereClient.getShareInfo(params);
reportView = "/#/share/shareReportTestPlan" + shareUrl;
}
log("点击链接进入测试计划报告页面:" + endpoint + reportView);
log("点击链接进入测试计划报告页面:" + StringUtils.stripEnd(endpoint, "/") + reportView);
return flag;
}

Expand Down

0 comments on commit 7cd68db

Please sign in to comment.