Example #1
0
 def test_045_TUMIUAT_573(self):
     my_account1 = my_account(self.driver)
     my_account1.go_to_my_account()
     my_account1.click_address_book_btn()
     my_account1.click_address_del()
     assert new_find_element(self.driver,
                             my_account.address_name).text != '测试测试测试测试'
Example #2
0
 def tearDown(self):
     homepage1 = homepage(self.driver)
     my_account1 = my_account(self.driver)
     time.sleep(2)
     my_account1.move_to_logo()
     my_account1.click_account_logo()
     if new_find_element(self.driver, homepage.my_username).text != '登录/注册':
         homepage1.sign_out()
Example #3
0
 def test_034_TUMIUAT_1529_1(self):
     my_account1 = my_account(self.driver)
     my_account1.go_to_my_account()
     time.sleep(6)
     b = new_find_element(self.driver, my_account.nearby_stores).text
     my_account1.click_nearby_stores()
     a = new_find_element(self.driver, my_account.store_name).text
     assert b == a
Example #4
0
 def test_035_TUMIUAT_1529_2(self):
     my_account1 = my_account(self.driver)
     my_account1.go_to_my_account()
     time.sleep(6)
     my_account1.click_nearby_stores()
     my_account1.click_store_search()
     assert new_find_element(self.driver,
                             my_account.store_type).text == '门店类型'
Example #5
0
 def test_055_TUMIUAT_577(self):
     my_account1 = my_account(self.driver)
     my_account1.go_to_my_account()
     my_account1.click_update_my_password()
     my_account1.input_now_password()
     my_account1.input_confirm_new_password()
     my_account1.click_save_new_password()
     assert new_find_element(
         self.driver, my_account.newPassword_errors).text == '请输入您的新密码'
Example #6
0
 def test_033_TUMIUAT_565(self):
     my_account1 = my_account(self.driver)
     my_account1.go_to_my_account()
     assert new_find_element(self.driver,
                             my_account.update_my_info).text == '更新个人信息'
     assert new_find_element(self.driver,
                             my_account.update_my_password).text == '更新密码'
     assert new_find_element(self.driver,
                             my_account.my_address).text == '我的地址簿'
Example #7
0
 def test_056_TUMIUAT_578(self):
     my_account1 = my_account(self.driver)
     my_account1.go_to_my_account()
     my_account1.click_update_my_password()
     my_account1.input_now_password()
     my_account1.input_new_password()
     my_account1.click_save_new_password()
     assert new_find_element(
         self.driver,
         my_account.checkNewPassword_errors).text == '请输入您的确认密码'
Example #8
0
 def test_044_TUMIUAT_572(self):
     my_account1 = my_account(self.driver)
     my_account1.go_to_my_account()
     my_account1.click_address_book_btn()
     my_account1.click_address_edit()
     my_account1.input_address_consignee()
     my_account1.input_address_Detailed()
     my_account1.click_address_save()
     assert new_find_element(self.driver,
                             my_account.creat_new_address).text == '添加收货地址'
Example #9
0
 def test_036_TUMIUAT_566(self):
     my_account1 = my_account(self.driver)
     my_account1.go_to_my_account()
     my_account1.input_diy()
     time.sleep(1)
     my_account1.click_diy_btn()
     time.sleep(1)
     assert new_find_element(
         self.driver,
         my_account.diy_title).text == '点击下方输入框激活个性化定制,激活后在输入框内输入您想要定制的字母'
     self.driver.refresh()
Example #10
0
 def test_057_TUMIUAT_579(self):
     my_account1 = my_account(self.driver)
     my_account1.go_to_my_account()
     my_account1.click_update_my_password()
     my_account1.input_now_password()
     my_account1.input_new_password()
     my_account1.input_confirm_new_password2()
     my_account1.click_save_new_password()
     assert new_find_element(
         self.driver,
         my_account.checkNewPassword_errors).text == '密码和确认密码不匹配'
Example #11
0
 def test_052_TUMIUAT_574_2(self):
     my_account1 = my_account(self.driver)
     my_account1.go_to_my_account2()
     my_account1.click_update_my_password()
     my_account1.input_now_password2()
     my_account1.input_new_password2()
     my_account1.input_confirm_new_password2()
     my_account1.click_save_new_password()
     assert new_find_element(
         self.driver,
         my_account.modifly_password_successful).text == '您的密码已被更改'
Example #12
0
 def test_041_TUMIUAT_1582(self):
     my_account1 = my_account(self.driver)
     my_account1.go_to_my_account()
     my_account1.click_update_my_info()
     my_account1.clear_account_username()
     my_account1.input_account_username()
     my_account1.click_account_call()
     my_account1.click_call_miss()
     my_account1.clear_account_email()
     my_account1.click_account_save_btn()
     assert new_find_element(self.driver,
                             my_account.update_my_info).text == '更新个人信息'
Example #13
0
 def test_038_TUMIUAT_568(self):
     my_account1 = my_account(self.driver)
     my_account1.go_to_my_account()
     my_account1.click_update_my_info()
     my_account1.clear_account_username()
     my_account1.click_account_call()
     my_account1.click_call_miss()
     my_account1.clear_account_email()
     my_account1.input_account_email()
     my_account1.click_account_save_btn()
     assert new_find_element(self.driver,
                             my_account.userName_errors).text == '请输入用户名'
Example #14
0
 def test_039_TUMIUAT_1578(self):
     my_account1 = my_account(self.driver)
     my_account1.go_to_my_account()
     my_account1.click_update_my_info()
     my_account1.clear_account_username()
     my_account1.input_account_username()
     my_account1.click_account_call()
     my_account1.click_call_null()
     my_account1.clear_account_email()
     my_account1.input_account_email()
     my_account1.click_account_save_btn()
     assert new_find_element(self.driver,
                             my_account.titleCode_errors).text == '请选择您的称呼'
Example #15
0
 def test_043_TUMIUAT_571(self):
     my_account1 = my_account(self.driver)
     my_account1.go_to_my_account()
     my_account1.click_address_book_btn()
     my_account1.click_creat_new_address()
     my_account1.input_address_consignee()
     my_account1.input_address_phone()
     my_account1.click_address_region()
     my_account1.click_address_beijing()
     my_account1.click_address_qu()
     my_account1.input_address_Detailed()
     my_account1.click_address_save()
     assert new_find_element(self.driver,
                             my_account.creat_new_address).text == '添加收货地址'
Example #16
0
 def test_046_TUMIUAT_1584(self):
     my_account1 = my_account(self.driver)
     my_account1.go_to_my_account()
     my_account1.click_address_book_btn()
     my_account1.click_creat_new_address()
     my_account1.clear_address_consignee()
     my_account1.input_address_phone()
     my_account1.click_address_region()
     my_account1.click_address_beijing()
     my_account1.click_address_qu()
     my_account1.input_address_Detailed()
     my_account1.click_address_save()
     assert new_find_element(self.driver,
                             my_account.nameErrors).text == '收货人为必填信息'
Example #17
0
 def test_047_TUMIUAT_1585(self):
     my_account1 = my_account(self.driver)
     my_account1.go_to_my_account()
     my_account1.click_address_book_btn()
     my_account1.click_creat_new_address()
     my_account1.input_address_consignee()
     my_account1.input_address_phone2()
     my_account1.click_address_region()
     my_account1.click_address_beijing()
     my_account1.click_address_qu()
     my_account1.input_address_Detailed()
     my_account1.click_address_save()
     assert new_find_element(self.driver,
                             my_account.phoneErrors).text == '请输入正确的手机号码'
Example #18
0
 def test_050_TUMIUAT_1588(self):
     my_account1 = my_account(self.driver)
     my_account1.go_to_my_account()
     my_account1.click_address_book_btn()
     my_account1.click_creat_new_address()
     my_account1.input_address_consignee()
     my_account1.input_address_phone()
     my_account1.input_addressEditAreaCode()
     my_account1.click_address_region()
     my_account1.click_address_beijing()
     my_account1.click_address_qu()
     my_account1.input_address_Detailed()
     my_account1.click_address_save()
     assert new_find_element(
         self.driver, my_account.areaPhone_errors).text == '请输入完整的固定电话号码'
Example #19
0
 def test_032_TUMIUAT_564(self):
     my_account1 = my_account(self.driver)
     my_account1.go_to_my_info()
     assert new_find_element(self.driver,
                             my_account.my_account_title).text == '个人信息'