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] 希望能够做到本地映射不同的测试用例 #1300

Open
cfy3133 opened this issue Jan 13, 2025 · 2 comments
Open

[feature] 希望能够做到本地映射不同的测试用例 #1300

cfy3133 opened this issue Jan 13, 2025 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@cfy3133
Copy link

cfy3133 commented Jan 13, 2025

Is your feature request related to a problem? Please describe.
在断点中篡改报文并不是很方便,每次都得改,那么为了一劳永逸的修改某个接口的响应信息,并且能够动态设置成返回不同信息的测试用例,希望可以用接口映射的方式
Describe the solution you'd like
本地映射将某个接口的响应内容指向本地文件,先创建一个本地文件,针对接口项目的登录接口做本地映射,创建一个txt文件,写入如下内容,这内容里改了响应信息中的code是500,并且可以动态的修改文件中的code信息,每次执行的测试用例就是修改后的code信息

Describe alternatives you've considered
Charles可以做到这点

Additional context
image

@cfy3133 cfy3133 added the enhancement New feature or request label Jan 13, 2025
@MegatronKing
Copy link
Member

@cfy3133 您好,感谢反馈,试试重写功能,可以直接预设数据也可以指定文件路径。

文档:https://reqable.com/zh-CN/docs/capture/rewrite#replace-req

@cfy3133
Copy link
Author

cfy3133 commented Jan 19, 2025

@cfy3133 您好,感谢反馈,试试重写功能,可以直接预设数据也可以指定文件路径。

文档:https://reqable.com/zh-CN/docs/capture/rewrite#replace-req

您好,好的,还是建议加上如上的功能,感谢回复

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