modify agent's api

This commit is contained in:
coderfengyun 2014-03-18 15:55:05 +08:00
parent 38b805153c
commit dfcc838a96
2 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ public class TestController {
return dirPath; return dirPath;
} }
@RequestMapping(value = "/run", method = RequestMethod.POST) @RequestMapping(value = "/runWithoutParams", method = RequestMethod.POST)
@ResponseBody @ResponseBody
public RunScenarioResultModel run( public RunScenarioResultModel run(
@RequestBody RunScenarioModel runScenarioModel) @RequestBody RunScenarioModel runScenarioModel)

View File

@ -83,7 +83,7 @@ public class TestWithScriptFile {
runScenarioModel.setPoolSize(load); runScenarioModel.setPoolSize(load);
HttpResponse httpResponse = this.getHttpRequester().sendPostXml( HttpResponse httpResponse = this.getHttpRequester().sendPostXml(
this.url + "/run", this.url + "/runWithoutParams",
marshalRunScenarioModel(runScenarioModel), null); marshalRunScenarioModel(runScenarioModel), null);
RunScenarioResultModel resultModel = (RunScenarioResultModel) MarshalHelper RunScenarioResultModel resultModel = (RunScenarioResultModel) MarshalHelper
.unmarshal(RunScenarioResultModel.class, .unmarshal(RunScenarioResultModel.class,