摘要:
第一种: import unittest from common import login from read_xl import read_excel from unittestreport import ddt, list_data data = read_excel('cases.xlsx', 阅读全文
摘要:
未学习excel操作前,测试用例写法一般如下: 缺点:代码重复率高,每个函数只能写一条用例。 import unittest from common import login from read_xl import read_excel data = read_excel('cases.xlsx', 阅读全文
摘要:
## excel 结合测试用例的用法- 使用excel单独管理用例中的作用:便于维护- 具体用法: 1. read_xl读取excel中的数据 2. 通过参数化完成 数据到用例的结合 3. 用例函数只需要写一个,数据可以有多个甚至上万个,节省了很多的测试用例函数 4. 什么数据可以整合到一个用例函数 阅读全文