python_30期_第3讲【 pandas 】

import pandas as pd
from class_1210.class_1231 import HttpRequests
#打开excel获取测试所有数据
df = pd.read_excel('test_excle.xlsx')
test_excle=df.values#嵌套列表的数据
#完成HTTP测试
for item in test_excle:
print("目前执行的用例{0}:{1}".format(item[0],item[1]))
res=HttpRequests.https_request(item[2],eval(item[3]),item[4])
print('http执行的结果是{0}'.format(res))

猜你喜欢

转载自www.cnblogs.com/zhang-ping1205/p/12943880.html