Commit 5fc76f00 by zhangchunyao

Delete testcase.py

parent 01eb81f2
from common.Excel import Reader, Writer
from common.Http import InterFace
from xlutils.copy import copy
import unittest
import json
import ddt
reader = Reader()
writer = Writer()
inter = InterFace()
APIPATH = 'opt/apitest/apiAutoByJenkins/repot/apitest.xls'
#APIPATH = 'D:/workSpace/Python_workspace/apitestunit.xls'
br = reader.open_excle(APIPATH)
sheetname = reader.get_sheets()
bw = copy(br)
data = reader.sheet_cont()
@ddt.ddt
class Run(unittest.TestCase):
@classmethod
def setUp(self):
pass
@ddt.data(*data)
def test_run(self,data):
result = inter.dosheet(br, bw, data)
print(result)
def tearDown(self):
inter.xlsx_save(bw, APIPATH)
if __name__ == '__main__':
run = Run()
run.test_run()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment