change some files

This commit is contained in:
floraachy 2020-03-12 17:28:00 +08:00
parent a7ce0026f3
commit 1cd5a5fb4f
40 changed files with 11 additions and 11 deletions

View File

@ -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)

View File

@ -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

View File

@ -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
"""
第一步创建测试套件

View File

@ -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):

View File

@ -10,8 +10,6 @@ import unittest
from BeautifulReport import BeautifulReport
from python27Class.class03072020.demo1.testRegister import RegisterTestCase
"""
第一步创建测试套件并加载测试用例
"""

View File

@ -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 = [

View File

@ -10,8 +10,6 @@ import unittest
from BeautifulReport import BeautifulReport
from python27Class.class03072020.demo1.testRegister import RegisterTestCase
"""
第一步创建测试套件并加载测试用例
"""

View File

@ -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):