Пример #1
0
class UseAuthSuite(unittest.TestCase):
    def setUp(self):
        #定义驱动
        self.browser = setDriver().set_driver()
        self.commonSuite = CommonSuiteData(self.browser)
        self.useAuthCase = UseAuthorization(self.browser)
        self.initDriver = initDriver()

        #前置条件
        self.commonSuite.use_auth_module_prefix_condition()

    def test_use_auth(self):
        #填写产品信息
        self.useAuthCase.add_product_information_001()
        #上传logo
        self.useAuthCase.upload_logo_upgrade_002()
        #产品信息校验
        self.useAuthCase.check_product_information_003()
        #logo包校验
        self.useAuthCase.check_logo_upgrade_004()
        #上传授权码
        # self.useAuthCase.add_product_information_005()
        #上传授权码校验
        self.useAuthCase.check_updata_auth_006()

    def tearDown(self):
        self.commonSuite.user_quit()
        self.initDriver.close_driver(self.browser)
Пример #2
0
 def setUp(self):
     #定义驱动
     self.browser = setDriver().set_driver()
     self.commonSuite = CommonSuiteData(self.browser)
     self.useAuthCase = UseAuthorization(self.browser)
     self.initDriver = initDriver()
     
     #前置条件
     self.commonSuite.use_auth_module_prefix_condition()
Пример #3
0
class UseAuthSuite(unittest.TestCase):
    def setUp(self):
        #定义驱动
        self.browser = setDriver().set_driver()
        self.commonSuite = CommonSuiteData(self.browser)
        self.useAuthCase = UseAuthorization(self.browser)
        self.initDriver = initDriver()
        
        #前置条件
        self.commonSuite.use_auth_module_prefix_condition()
        
    def test_use_auth(self):
        #填写产品信息
        self.useAuthCase.add_product_information_001()
        #上传logo
        self.useAuthCase.upload_logo_upgrade_002()
        #产品信息校验
        self.useAuthCase.check_product_information_003()
        #logo包校验
        self.useAuthCase.check_logo_upgrade_004()
        #上传授权码
        self.useAuthCase.add_product_information_005()
        #上传授权码校验
        self.useAuthCase.check_updata_auth_006()
        
    def tearDown(self):
        self.commonSuite.use_auth_module_post_condition()
        self.initDriver.close_driver(self.browser)