arextest / arextest/arex-agent-java
希望get请求能在页面展示请求参数,便于查看
- Dominant language
- Java
- Stars
- 564
- Forks
- 140
- Avg merge
- 36m
- Merged PRs (30d)
- 2
Description
### Search before asking
- [X] I have searched the existing [issues](https://github.com/arextest/arex-agent-java/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后台页面中,录制的请求参数不显示,具体如下:
![Uploading 1-3.png…]()
图片好像传不上去: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 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!
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.