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

数据驱动 #87

Closed
yanghuo662 opened this Issue Jan 19, 2018 · 3 comments

Comments

Projects
None yet
3 participants
@yanghuo662

yanghuo662 commented Jan 19, 2018

比如我要访问一个文件上传接口,文件是分片来上传的,那么上传完1个文件可能需要访问这个接口100次,而每一次请求可能只有个别参数发生变化(如分片ID和分片内容等),能否循环调用优雅的实现呢?

@debugtalk

This comment has been minimized.

Collaborator

debugtalk commented Jan 20, 2018

@yanghuo662 当前是有times这么一个字段,可以指定某个接口运行从次数。

但针对你说的这种情况,数据驱动是最好方式,也就是指定需要运行的参数列表,这个是我后续要增加的一个功能。

#74

@debugtalk debugtalk changed the title from 多次重复访问同一接口,如何实现比较好呢 to 数据驱动 Jan 20, 2018

@Doraly

This comment has been minimized.

Doraly commented Feb 7, 2018

期待该框架 支持数据驱动的更新..

@debugtalk

This comment has been minimized.

Collaborator

debugtalk commented Feb 15, 2018

测试用例已经支持参数化数据驱动机制。
设计文档:http://debugtalk.com/post/httprunner-data-driven/
使用文档:http://cn.httprunner.org/data-driven/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment