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() AssertMethod.assert_false_screen_shot(function_driver, res)
def test_DLZC1(self, login_page_class_load, function_driver): logging.info("Case number code:{}".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( ) AssertMethod.assert_equal_screen_shot( function_driver, (username_input_attribute_value, "手机号码"))
def test_d2(self, login_activity_class_load, function_driver): logging.info("用例编号编码:{}".format(inspect.stack()[0][3])) login_activity_class_load.input_phone("18383398524") login_activity_class_load.input_code("123456") login_activity_class_load.click_login_btn() message_value = login_activity_class_load.get_message_value() AssertMethod.assert_equal_screen_shot(function_driver, (message_value, "用户存在"))
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() AssertMethod.assert_equal_screen_shot(function_driver, (error_text, "用户名不能为空"))
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() AssertMethod.assert_equal_screen_shot(function_driver, (login_title, "登录"))
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( ) AssertMethod.assert_equal_screen_shot( function_driver, (username_input_attribute_value, "手机号码"))
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() AssertMethod.assert_equal_screen_shot(function_driver, (error_text, "手机号码格式不正确"))