change some files
This commit is contained in:
parent
a7ce0026f3
commit
1cd5a5fb4f
|
@ -33,7 +33,7 @@ suite = unittest.TestSuite()
|
|||
# suite.addTest(loader.discover(r'E:\PycharmProject\PythonClassChy\python27Class'))
|
||||
|
||||
# 第四种:一条条去加载
|
||||
from python27Class.class03052020.testCase import LoginTestCase
|
||||
from python27Class.unitTest.class03052020.testCase import LoginTestCase
|
||||
case1 = LoginTestCase('test_login_pass')
|
||||
suite.addTest(case1)
|
||||
|
|
@ -7,7 +7,7 @@ Time: 2020/3/5 20:23
|
|||
"""
|
||||
import unittest
|
||||
|
||||
from python27Class.class03052020.login import login_check
|
||||
from python27Class.unitTest.class03052020.login import login_check
|
||||
|
||||
"""
|
||||
# 定义测试用例类:必须继承unittest.TestCase
|
|
@ -10,7 +10,7 @@ import unittest
|
|||
|
||||
from BeautifulReport import BeautifulReport
|
||||
|
||||
from python27Class.class03072020.demo1.testRegister import RegisterTestCase
|
||||
from python27Class.unitTest.class03072020.demo1.testRegister import RegisterTestCase
|
||||
|
||||
"""
|
||||
第一步:创建测试套件
|
|
@ -7,7 +7,7 @@ Time: 2020/3/7 9:47
|
|||
"""
|
||||
import unittest
|
||||
|
||||
from python27Class.class03072020.demo1.registerPage import register
|
||||
from python27Class.unitTest.class03072020.demo1.registerPage import register
|
||||
|
||||
|
||||
class RegisterTestCase(unittest.TestCase):
|
|
@ -10,8 +10,6 @@ import unittest
|
|||
|
||||
from BeautifulReport import BeautifulReport
|
||||
|
||||
from python27Class.class03072020.demo1.testRegister import RegisterTestCase
|
||||
|
||||
"""
|
||||
第一步:创建测试套件并加载测试用例
|
||||
"""
|
|
@ -7,9 +7,11 @@ Time: 2020/3/7 9:47
|
|||
"""
|
||||
import unittest
|
||||
|
||||
from python27Class.class03072020.demo2.registerPage import register
|
||||
from python27Class.class03072020.demo2.ddtNew import ddt, data
|
||||
|
||||
from python27Class.unitTest.class03072020.demo2.registerPage import register
|
||||
|
||||
|
||||
@ddt
|
||||
class RegisterTestCase(unittest.TestCase):
|
||||
cases = [
|
|
@ -10,8 +10,6 @@ import unittest
|
|||
|
||||
from BeautifulReport import BeautifulReport
|
||||
|
||||
from python27Class.class03072020.demo1.testRegister import RegisterTestCase
|
||||
|
||||
"""
|
||||
第一步:创建测试套件并加载测试用例
|
||||
"""
|
|
@ -7,9 +7,11 @@ Time: 2020/3/7 9:47
|
|||
"""
|
||||
import unittest
|
||||
|
||||
from python27Class.class03102020.demo2.registerPage import register
|
||||
from python27Class.class03102020.demo2.ddtNew import ddt, data
|
||||
from python27Class.class03102020.demo2.readExcel import HandleExcel
|
||||
from python27Class.class03102020.demo2.registerPage import register
|
||||
|
||||
from python27Class.unitTest.class03102020.demo2.ddtNew import ddt, data
|
||||
|
||||
|
||||
@ddt
|
||||
class RegisterTestCase(unittest.TestCase):
|
Loading…
Reference in New Issue