新版本初次提交
This commit is contained in:
@@ -7,7 +7,7 @@ import xlrd,xlwt
|
||||
import unittest,sys
|
||||
from xlutils.copy import copy
|
||||
from Interface.test_requests import requ
|
||||
from .log import LOG,logger
|
||||
from Public.log import LOG,logger
|
||||
@logger('解析测试用例文件')
|
||||
def datacel():
|
||||
try:
|
||||
@@ -32,4 +32,15 @@ def datacel():
|
||||
listfangshi.append((me.cell(i,5).value))
|
||||
listqiwang.append((me.cell(i,6).value))
|
||||
return listid,listkey,listconeent,listurl,listfangshi,listqiwang,listname
|
||||
except:LOG.info('打开测试用例失败,原因是:%s'%Exception)
|
||||
except:LOG.info('打开测试用例失败,原因是:%s'%Exception)
|
||||
@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