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

[Feature] 报错log记录更详细一些 #538

Open
4 tasks done
xyzdev-cell opened this issue Jun 25, 2024 · 2 comments
Open
4 tasks done

[Feature] 报错log记录更详细一些 #538

xyzdev-cell opened this issue Jun 25, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@xyzdev-cell
Copy link

Verify steps

  • Tracker 我已经在 Issue Tracker 中找过我要提出的问题
  • Need 当前 QD 框架并不包含该功能特性或者还不完善
  • Framework 这是 QD 框架应包含的特性,并非模板特性
  • Meaningful 我提交的不是无意义的 催促更新或修复 请求

Describe the Feature

现在的报错信息

Failed at 1/5 request,
Fail assert: {"re": "200", "from": "status"} from success_asserts,
Response Error : HTTP 404: Not Found,
Request URL: https://{{domain}}/portal.php

Describe the solution

  1. 显示变量替换后的请求URL, 比如 {{domain}} 显示为真正的值
  2. 显示变量替换后真实的请求体

因为模板里面各种变换字符串替换等写法各有不同, 真实出错的步骤不一定是log报错的那一步
失败时很难调试

Describe alternatives

如果能有堆栈保留每一步的请求信息则更好,不过这样可能会过于复杂

Additional context

No response

@xyzdev-cell xyzdev-cell added the enhancement New feature or request label Jun 25, 2024
@a76yyyy
Copy link
Contributor

a76yyyy commented Jun 30, 2024

记录更详细的错误是有必要的,但是显示变量替换后的请求体可能需要斟酌或者重构很多地方, 我考虑一下

@xyzdev-cell
Copy link
Author

那可能可以考虑不要在现在的结构里面记录,
而是现在的报错不变, 但始终保留一份真实请求信息附在界面的其他地方
可以完全不用改现在的结构, 只增加一个功能

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants