Esempio n. 1
0
 def test_DLZC8(self, login_page_class_load, register_page_class_load,
                function_driver):
     login_page_class_load.login_by_config_url()
     login_page_class_load.click_register_btn()
     register_page_class_load.click_other_register_btn()
     res = register_page_class_load.check_page_is_other_page()
     Assert_method.assert_false_screen_shot(function_driver, res)
Esempio n. 2
0
 def test_DLZC1(self, login_page_class_load, function_driver):
     logging.info("用例编号编码:{}".format(inspect.stack()[0][3]))
     login_page_class_load.login_by_config_url()
     username_input_attribute_value = login_page_class_load.get_username_attribute_value(
     )
     Assert_method.assert_equal_screen_shot(
         function_driver, (username_input_attribute_value, "手机号码"))
Esempio n. 3
0
 def test_DLZC11(self, login_page_class_load, register_page_class_load,
                 function_driver):
     login_page_class_load.login_by_config_url()
     login_page_class_load.click_register_btn()
     register_page_class_load.click_code_btn()
     error_text = register_page_class_load.get_error_text()
     Assert_method.assert_equal_screen_shot(function_driver,
                                            (error_text, "用户名不能为空"))
Esempio n. 4
0
 def test_DLZC9(self, login_page_class_load, register_page_class_load,
                function_driver):
     login_page_class_load.login_by_config_url()
     login_page_class_load.click_register_btn()
     register_page_class_load.click_login_btn()
     login_title = register_page_class_load.get_login_page_title()
     Assert_method.assert_equal_screen_shot(function_driver,
                                            (login_title, "登录"))
Esempio n. 5
0
 def test_DLZC7(self, login_page_class_load, register_page_class_load,
                function_driver):
     login_page_class_load.login_by_config_url()
     login_page_class_load.click_register_btn()
     username_input_attribute_value = register_page_class_load.get_username_attribute_value(
     )
     Assert_method.assert_equal_screen_shot(
         function_driver, (username_input_attribute_value, "手机号码"))
Esempio n. 6
0
 def test_DLZC12(self, login_page_class_load, register_page_class_load,
                 function_driver):
     login_page_class_load.login_by_config_url()
     login_page_class_load.click_register_btn()
     register_page_class_load.username_send_keys(1)
     register_page_class_load.click_register_btn()
     error_text = register_page_class_load.get_error_text()
     Assert_method.assert_equal_screen_shot(function_driver,
                                            (error_text, "手机号码格式不正确"))