arex-agent-java
arex-agent-java copied to clipboard
希望get请求能在页面展示请求参数,便于查看
Search before asking
- [X] I have searched the existing issues before asking.
AREX Test Service
AREX Java Agent (arextest/arex-agent-java)
Current Behavior
在录制get请求地址为 http://localhost;8080/test?name=张三&age=16或者 http://localhost:8080/test2/李四 ,这种get请求时,
在arex后台页面中,录制的请求参数不显示,具体如下:
图片好像传不上去:656108079 AREX的交流群中我有发截图,我的群内名称为 Puddy-小虾米
Expected Behavior
期望在获取get请求地址中的参数时,应该要把地址显示出来,便于查看
Steps To Reproduce
1、模拟编写两个接受get请求的接口 2、将agent放到没录制的系统上去 3、postman请求这两个get接口 接口代码: @GetMapping("/test/{orderId}") public BaseResponse usePromotion(@PathVariable String orderId) throws BusinessException { try { return BaseResponse.buildSuccessResult("test-1", "测试录制get请求"); } catch (BusinessException e) { return BaseResponse.buildFailResult(String.valueOf(e.getErrorcode()), e.getMsg()); } }
@RequestMapping(value = "/test1", method = RequestMethod.GET)
public BaseResponse usePromotion(@RequestParam String test1,@RequestParam String test2,@RequestParam String test3) throws BusinessException {
Map<String,String> map = new HashMap<>();
map.put("test1",test1);
map.put("test2",test2);
map.put("test3",test3);
try {
return BaseResponse.buildSuccessResult("test-2",map);
} catch (BusinessException e) {
return BaseResponse.buildFailResult(String.valueOf(e.getErrorcode()), e.getMsg());
}
}
Anything else
No response
Are you willing to submit a pull request to fix on your own?
- [X] Yes I am willing to submit a pull request on my own!