fix(接口测试): 修改单词拼写错误
This commit is contained in:
parent
81f1db9f42
commit
33351bfee8
|
@ -43,7 +43,7 @@ public class ApiParamConfig extends ParameterConfig {
|
|||
* value 为对应的接口协议
|
||||
* 环境前后置忽略协议需要使用
|
||||
*/
|
||||
private Map<Class<? extends AbstractMsTestElement>, String> testElementClassProtocalMap = HashMap.newHashMap(0);
|
||||
private Map<Class<? extends AbstractMsTestElement>, String> testElementClassProtocolMap = HashMap.newHashMap(0);
|
||||
|
||||
|
||||
@Override
|
||||
|
|
|
@ -116,7 +116,7 @@ public class MsCommonElementConverter extends AbstractJmeterElementConverter<MsC
|
|||
protocol = ApiConstants.HTTP_PROTOCOL;
|
||||
} else {
|
||||
if (config instanceof ApiParamConfig apiParamConfig) {
|
||||
protocol = apiParamConfig.getTestElementClassProtocalMap().get(parent.getClass());
|
||||
protocol = apiParamConfig.getTestElementClassProtocolMap().get(parent.getClass());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -521,7 +521,7 @@ public class ApiExecuteService {
|
|||
public ApiParamConfig getApiParamConfig(String reportId) {
|
||||
ApiParamConfig paramConfig = new ApiParamConfig();
|
||||
paramConfig.setTestElementClassPluginIdMap(apiPluginService.getTestElementPluginMap());
|
||||
paramConfig.setTestElementClassProtocalMap(apiPluginService.getTestElementProtocolMap());
|
||||
paramConfig.setTestElementClassProtocolMap(apiPluginService.getTestElementProtocolMap());
|
||||
paramConfig.setReportId(reportId);
|
||||
return paramConfig;
|
||||
}
|
||||
|
|
|
@ -1540,7 +1540,7 @@ public class ApiScenarioService extends MoveNodeService {
|
|||
public ApiScenarioParamConfig getApiScenarioParamConfig(ApiScenarioParseParam request, ApiScenarioParseEnvInfo scenarioParseEnvInfo) {
|
||||
ApiScenarioParamConfig parseConfig = new ApiScenarioParamConfig();
|
||||
parseConfig.setTestElementClassPluginIdMap(apiPluginService.getTestElementPluginMap());
|
||||
parseConfig.setTestElementClassProtocalMap(apiPluginService.getTestElementProtocolMap());
|
||||
parseConfig.setTestElementClassProtocolMap(apiPluginService.getTestElementProtocolMap());
|
||||
parseConfig.setGrouped(request.getGrouped());
|
||||
parseConfig.setRootScenarioConfig(request.getScenarioConfig());
|
||||
if (BooleanUtils.isTrue(request.getGrouped())) {
|
||||
|
|
|
@ -1207,7 +1207,7 @@ public class ApiScenarioControllerTests extends BaseTest {
|
|||
Assertions.assertEquals(apiScenarioDetail.getUpdateUserName(), userMapper.selectByPrimaryKey(apiScenarioDetail.getUpdateUser()).getName());
|
||||
Assertions.assertFalse(apiScenarioDetail.getFollow());
|
||||
// 验证数据
|
||||
asserGetApiScenarioSteps(this.addApiScenarioSteps, apiScenarioDetail.getSteps());
|
||||
assertGetApiScenarioSteps(this.addApiScenarioSteps, apiScenarioDetail.getSteps());
|
||||
|
||||
apiScenarioService.follow(anOtherAddApiScenario.getId(), "admin");
|
||||
mvcResult = this.requestGetWithOkAndReturn(DEFAULT_GET, anOtherAddApiScenario.getId());
|
||||
|
@ -1274,7 +1274,7 @@ public class ApiScenarioControllerTests extends BaseTest {
|
|||
}
|
||||
}
|
||||
|
||||
private void asserGetApiScenarioSteps(List<? extends ApiScenarioStepCommonDTO> addApiScenarioSteps, List<? extends ApiScenarioStepCommonDTO> steps) {
|
||||
private void assertGetApiScenarioSteps(List<? extends ApiScenarioStepCommonDTO> addApiScenarioSteps, List<? extends ApiScenarioStepCommonDTO> steps) {
|
||||
if (addApiScenarioSteps == null || steps == null) {
|
||||
Assertions.assertEquals(addApiScenarioSteps, null);
|
||||
Assertions.assertEquals(steps, null);
|
||||
|
@ -1285,7 +1285,7 @@ public class ApiScenarioControllerTests extends BaseTest {
|
|||
ApiScenarioStepRequest stepRequest = (ApiScenarioStepRequest) addApiScenarioSteps.get(i);
|
||||
ApiScenarioStepDTO stepDTO = (ApiScenarioStepDTO) steps.get(i);
|
||||
Assertions.assertEquals(BeanUtils.copyBean(new ApiScenarioStepCommonDTO(), stepRequest), BeanUtils.copyBean(new ApiScenarioStepCommonDTO(), stepDTO));
|
||||
asserGetApiScenarioSteps(stepRequest.getChildren(), stepDTO.getChildren());
|
||||
assertGetApiScenarioSteps(stepRequest.getChildren(), stepDTO.getChildren());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue