Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

希望get请求能在页面展示请求参数,便于查看 #564

Open
2 tasks done
freedom-zhishui opened this issue Sep 11, 2024 · 0 comments
Open
2 tasks done
Assignees
Labels
help wanted Extra attention is needed

Comments

@freedom-zhishui
Copy link

Search before asking

  • 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后台页面中,录制的请求参数不显示,具体如下:
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<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?

  • Yes I am willing to submit a pull request on my own!
@freedom-zhishui freedom-zhishui added the bug 🐞 Something isn't working label Sep 11, 2024
@lucas-myx lucas-myx added help wanted Extra attention is needed and removed bug 🐞 Something isn't working labels Sep 12, 2024
@lucas-myx lucas-myx changed the title [Bug] 希望get请求能在页面展示请求参数,便于查看 Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants