Commit b16404e3 authored by libin's avatar libin
Browse files

自动化初始数据

parent aea1299a
......@@ -86,5 +86,5 @@ def init():
# print(test_data.PRE_FIXED_STATION_ID,test_data.PRE_FIXED_STATION_NAME,test_data.PRE_MOBILE_STATION_ID,
# test_data.PRE_MOBILE_STATION_NAME)
sql_obj.close_connect()
\ No newline at end of file
......@@ -3,9 +3,13 @@
import os
import time
import unittest
from src.datalib import init_data
from src.dep import HTMLTestRunner
from src.common import web_client
init_data.init()
testunit = unittest.TestSuite()
test_dir = '../testcases_admin'
......@@ -20,7 +24,7 @@ filename = test_report + now + '_result.html'
fp = open(filename, 'wb')
#定义测试报告
runner = HTMLTestRunner.HTMLTestRunner(stream=fp, title=u'智能工位系统测试报告', description=u'用例执行情况:')
runner = HTMLTestRunner.HTMLTestRunner(stream=fp, verbosity=2, title=u'智能工位系统测试报告', description=u'用例执行情况:')
#运行测试用例
runner.run(tests)
......
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