parent
df1d5d7608
commit
6c1752b685
|
@ -151,7 +151,7 @@ public class JMeterService {
|
|||
}
|
||||
}
|
||||
|
||||
private synchronized void send(JmeterRunRequestDTO request, List<TestResource> resources) {
|
||||
private void send(JmeterRunRequestDTO request, List<TestResource> resources) {
|
||||
try {
|
||||
if (StringUtils.isNotEmpty(request.getPoolId()) && CollectionUtils.isEmpty(resources)) {
|
||||
resources = GenerateHashTreeUtil.setPoolResource(request.getPoolId());
|
||||
|
|
|
@ -236,6 +236,11 @@ public class ApiAutomationService {
|
|||
public ApiScenario create(SaveApiScenarioRequest request, List<MultipartFile> bodyFiles, List<MultipartFile> scenarioFiles) {
|
||||
checkQuota();
|
||||
request.setId(UUID.randomUUID().toString());
|
||||
if (request.getScenarioDefinition() == null) {
|
||||
MsScenario msScenario = new MsScenario();
|
||||
msScenario.setHashTree(new LinkedList<>());
|
||||
request.setScenarioDefinition(msScenario);
|
||||
}
|
||||
checkNameExist(request);
|
||||
int nextNum = getNextNum(request.getProjectId());
|
||||
if (StringUtils.isBlank(request.getCustomNum())) {
|
||||
|
|
|
@ -255,7 +255,7 @@
|
|||
this.$emit('saveAsEdit', data);
|
||||
},
|
||||
refresh() {
|
||||
this.$emit("refreshTable");
|
||||
this.$emit("refreshAll");
|
||||
},
|
||||
addScenario() {
|
||||
if (!this.projectId) {
|
||||
|
|
Loading…
Reference in New Issue