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