会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
a56爆大奖在线娱乐的博客
a56爆大奖在线娱乐的园子
账号设置
简洁模式
...
退出登录
注册
登录
墨振
博客园
首页
新随笔
联系
订阅
管理
2020年11月22日
ddt库 数据驱动
摘要: 安装ddt,在cmd窗口输入:pip.exe install ddt 1.导入ddt: from ddt improt ddt,data,unpack,file_data 2.在unittest框架class类前 加入 @ddt 3.在需要进行参数化的测试用例前面加入 @data([],[]) @u
阅读全文
posted @ 2020-11-22 23:30 墨振
阅读(161)
评论(0)
推荐(0)
编辑
公告