Skip to content

Commit

Permalink
fix: solve problem
Browse files Browse the repository at this point in the history
  • Loading branch information
rchen9 committed Aug 12, 2024
1 parent 1394a4b commit ecd8388
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ public ReplayPlan build(BuildReplayPlanRequest request, PlanContext planContext)
replayPlan.setCaseRecordVersion(replayApp.getAgentExtVersion());
replayPlan.setAppName(replayApp.getAppName());
}
replayPlan.setPlanName(getReplayName(replayApp));
replayPlan.setPlanName(getReplayName(request, replayApp));

ConfigurationService.ScheduleConfiguration schedule = configurationService.schedule(appId);
replayPlan.setReplaySendMaxQps(
Expand Down Expand Up @@ -233,7 +233,11 @@ private String getIpAddress(List<ServiceInstance> serviceInstances) {
return serviceInstances.stream().map(ServiceInstance::getIp).collect(Collectors.joining(","));
}

private String getReplayName(ConfigurationService.Application appInfo) {
private String getReplayName(BuildReplayPlanRequest request,
ConfigurationService.Application appInfo) {
if (StringUtils.isNotBlank(request.getPlanName())) {
return request.getPlanName();
}
StringBuilder stringBuilder = new StringBuilder();
if (appInfo != null) {
stringBuilder.append(appInfo.getAppName()).append("_");
Expand Down

0 comments on commit ecd8388

Please sign in to comment.