Update get_excel.py
This commit is contained in:
@@ -32,3 +32,12 @@ def datacel(filrpath):
|
||||
except Exception as e:
|
||||
LOG.info('打开测试用例失败,原因是:%s' % e)
|
||||
return
|
||||
@logger('生成数据驱动所用数据')
|
||||
def makedata():
|
||||
listid, listkey, listconeent, listurl, listfangshi, listqiwang, listname=datacel()
|
||||
i=0
|
||||
make_data=[]
|
||||
for i in range(len(listid)):
|
||||
make_data.append({'url':listurl[i],'key':listkey[i],'coneent':listconeent[i],'fangshi':listfangshi[i],'qiwang':listqiwang[i]})
|
||||
i+=1
|
||||
return make_data
|
||||
|
||||
Reference in New Issue
Block a user