コード例 #1
0
 def test_MyHome_002Change_ProfilePhoto(self):
     """用例名称:我家→修改个人资料中的头像功能"""
     driver = self.driver
     MyHome.IntoMyHome(driver)
     time.sleep(1)
     TestResult = MyHome.Change_ProfilePhoto(driver)
     ##修改个人头像
     self.assertTrue(TestResult)
コード例 #2
0
 def test_MyHome_004AddressManage(self):
     """用例名称:我家→地址管理→增加收货地址"""
     driver = self.driver
     MyHome.IntoMyHome(driver)
     time.sleep(2)
     TestResult = MyHome.AddressManage(driver)
     # 地址管理增加收货地址
     self.assertTrue(TestResult)
コード例 #3
0
 def test_MyHome_005DeleteAddress(self):
     """用例名称:我家→地址管理→删除收货地址"""
     driver = self.driver
     MyHome.IntoMyHome(driver)
     time.sleep(2)
     TestResult = MyHome.DeleteAddress(driver, 1)
     # 地址管理删除收货地址driver后面的数字为删除次数
     self.assertTrue(TestResult)
コード例 #4
0
 def test_MyHome_001MsgSetting(self):
     """用例名称:我家→测试我的消息、设置、进入个人资料是否正常显示"""
     driver = self.driver
     MyHome.IntoMyHome(driver)
     # 进入我家页面
     time.sleep(3)
     TestResult = MyHome.MyHome_MsgSetting(driver)
     # 测试我的消息、设置、进入个人资料是否正常显示
     self.assertTrue(TestResult)
コード例 #5
0
 def test_MyHome_003Change_PersonalData(self):
     """用例名称:我家→修改个人资料功能"""
     driver = self.driver
     MyHome.IntoMyHome(driver)
     time.sleep(1)
     TestResult = MyHome.Change_PersonalData(driver)
     # 修改个人资料功能
     """
     BUG下期优化一下荣耀V9修改个人信息生日身高体重上滑下滑坐标不对问题
     """
     self.assertTrue(TestResult)
コード例 #6
0
 def test_MyAPP_005SmartHome(self):
     """用例名称:我家→全部应用→智能家居"""
     driver = self.driver
     MyHome.IntoMyHome(driver)
     # 进入我家页面
     TestResult = MyAPP.MyApplication(driver, AppName="智能家居", wojia=True)
     self.assertTrue(TestResult)
コード例 #7
0
 def test_MyAPP_009IntoALLAPP(self):
     """用例名称:我家→全部应用→进入全部应用"""
     driver = self.driver
     MyHome.IntoMyHome(driver)
     # 进入我家页面
     TestResult = MyAPP.IntoALLAPP(driver)
     self.assertTrue(TestResult)
コード例 #8
0
 def test_MyAPP_004CommunityServices(self):
     """用例名称:我家→全部应用→社区服务"""
     driver = self.driver
     MyHome.IntoMyHome(driver)
     # 进入我家页面
     TestResult = MyAPP.MyApplication(driver, AppName="社区服务", wojia=True)
     self.assertTrue(TestResult)
コード例 #9
0
 def test_MyAPP_002BindingRooms(self):
     """用例名称:我家→全部应用→房间绑定"""
     driver = self.driver
     MyHome.IntoMyHome(driver)
     # 进入我家页面
     TestResult = MyAPP.MyApplication(driver, AppName="房间绑定", wojia=True)
     self.assertTrue(TestResult)
コード例 #10
0
 def test_MyAPP_003FaultRepair(self):
     """用例名称:我家→全部应用→我的报事报修"""
     driver = self.driver
     MyHome.IntoMyHome(driver)
     # 进入我家页面
     TestResult = MyAPP.MyApplication(driver, AppName="我的报修", wojia=True)
     self.assertTrue(TestResult)
コード例 #11
0
 def test_MyAPP_007VisitorInvitation(self):
     """用例名称:我家→全部应用→访客邀请"""
     driver = self.driver
     MyHome.IntoMyHome(driver)
     # 进入我家页面
     TestResult = MyAPP.MyApplication(driver, AppName="访客邀请", wojia=True)
     self.assertTrue(TestResult)
コード例 #12
0
 def test_MyAPP_001ShoppingCart(self):
     """用例名称:我家→全部应用→我的购物车"""
     driver = self.driver
     MyHome.IntoMyHome(driver)
     # 进入我家页面
     TestResult = MyAPP.MyApplication(driver, AppName="我的购物车", wojia=True)
     self.assertTrue(TestResult)
コード例 #13
0
 def test_MyAPP_008MyActivity(self):
     """用例名称:我家→全部应用→我的活动"""
     driver = self.driver
     MyHome.IntoMyHome(driver)
     # 进入我家页面
     TestResult = MyAPP.MyApplication(driver, AppName="我的活动", wojia=True)
     self.assertTrue(TestResult)
コード例 #14
0
 def test_MyAPP_006FaceRecognition(self):
     """用例名称:我家→全部应用→人脸识别"""
     driver = self.driver
     MyHome.IntoMyHome(driver)
     # 进入我家页面
     TestResult = MyAPP.MyApplication(driver, AppName="人脸识别", wojia=True)
     self.assertTrue(TestResult)
コード例 #15
0
 def test_MyHome_006MyTorrent(self):
     """用例名称:我家→进入我的种子"""
     driver = self.driver
     MyHome.IntoMyHome(driver)
     time.sleep(2)
     TestResult = MyTorrent.MyTorrent(driver)
     # 进入我的种子
     self.assertTrue(TestResult)
コード例 #16
0
 def test_MyHome_007IntoCoupon(self):
     """用例名称:我家→进入我的优惠券"""
     driver = self.driver
     MyHome.IntoMyHome(driver)
     time.sleep(2)
     TestResult = MyCoupon.IntoCoupon(driver)
     # 进入我的优惠券
     self.assertTrue(TestResult)
コード例 #17
0
 def test_MyHome_008WoJiaOrder(self):
     """用例名称:我家→我的订单查看订单详情"""
     driver = self.driver
     MyHome.IntoMyHome(driver)
     time.sleep(2)
     TestResult = MyOrder.WoJiaOrder(driver)
     # 我家的订单查看详情
     self.assertTrue(TestResult)
コード例 #18
0
 def test_MyHome_009AllOrder(self):
     """用例名称:我家→我家查看全部订单"""
     driver = self.driver
     MyHome.IntoMyHome(driver)
     time.sleep(2)
     TestResult = MyOrder.AllOrder(driver)
     # 我家查看全部订单
     self.assertTrue(TestResult)
コード例 #19
0
 def Loginin_nomal(driver, username, password):
     """
     测试平时登录账户(在已有楼盘下账户未登录状态)
     :param username: 手机号
     :param password: 密码必须传入字符串"00000000"
     :return:None
     """
     try:
         MyHome.IntoDengLuPage(driver)
         jieguo = Public_Page.DengLu(driver, username, password)
         if jieguo == True:
             print("执行用例..............................登录哈奇账户%s成功" %
                   username)
         else:
             print("执行用例..............................登录哈奇账户%s失败" %
                   username)
     except:
         pass
コード例 #20
0
ShiDiPai.XiaLaPage(driver,200)
#case5: 下滑页面,不然定位不到下方的元素
ShiDiPai.ShengHuoPeiTao(driver)
#case6: 测试实地派生活配套
#ShiDiPai.Community_Image(driver)弃用页面没有
#case: 实地派广告,此楼盘下无此元素
#ShiDiPai.Recommend_Community_Title(driver)弃用页面没有
ShiDiPai.Tuijian_Loupan(driver)
#case7: 实地派推荐楼盘
#############实地派页面测试结束########################
"""
###########选择楼盘测试,切换导哈奇内部测试
#Loginin.QieHuanLouPan(driver, "哈奇内部测试", into = "Yes")
###########切换导哈奇内部测试结束####################

MyHome.IntoMyHome(driver)
'''
MyHome.MyHome_two(driver)
MyHome.Change_ProfilePhoto(driver)
MyHome.Change_PersonalData(driver)
MyHome.AddressManage(driver)
#MyHome.DeleteAddress(driver, 3)
#测试我家页面中各个功能
MyPurse.IntoPurse(driver)
#进入我的钱包

MyCoupon.IntoCoupon(driver)
#进入我的优惠券
MyOrder.WoJiaOrder(driver)
MyOrder.AllOrder(driver)
MyOrder.ClickMyOrder(driver)
コード例 #21
0
'''

#测试平时登录账户(在已有楼盘下账户未登录状态)

ShiDiPai.IntoShiDiPai(driver)
ShiDiPai.RecommendApp(driver)
ShiDiPai.Brand_Image(driver)
ShiDiPai.ZunXiangFuWu(driver)
ShiDiPai.XiaLaPage(driver)
ShiDiPai.Community_Image(driver)
ShiDiPai.Recommend_Community_Title(driver)
ShiDiPai.More_Building(driver)
###################################


MyHome.IntoMyHome(driver)
MyHome.MyHome_two(driver)
MyHome.Change_ProfilePhoto(driver)
MyHome.Change_PersonalData(driver)
MyHome.AddressManage(driver)
#MyHome.DeleteAddress(driver, 3)
#测试我家页面中各个功能
MyPurse.IntoPurse(driver)
#进入我的钱包

MyCoupon.IntoCoupon(driver)
#进入我的优惠券
MyOrder.WoJiaOrder(driver)
MyOrder.AllOrder(driver)
MyOrder.ClickMyOrder(driver)
#我的订单订单管理
コード例 #22
0

ShiDiPai.ZunXiangFuWu(driver)
# 查看尊享服务

ShiDiPai.XiaLaPage(driver, 600)

ShiDiPai.Community_Image(driver)
# 主要推荐的大图片楼盘,在哈奇内部测试楼盘不存在

ShiDiPai.Recommend_Community_Title(driver)
# 精品楼盘
# 实地派首页的自动化测试完成
##############################################################################################################

MyHome.IntoMyHome(driver)
# 进入我家页面
time.sleep(3)

MyHome.MyHome_MsgSetting(driver)
# 测试我的消息、设置、进入个人资料是否正常显示

MyHome.Change_ProfilePhoto(driver)
# 修改个人头像

MyHome.Change_PersonalData(driver)
# 修改个人资料功能

MyHome.AddressManage(driver)
# 地址管理增加收货地址
MyHome.DeleteAddress(driver, 3)
コード例 #23
0
 def test_MyAPP_016SmartBandInstruction(self):
     """用例名称:我家→全部应用→智能手环使用说明"""
     driver = self.driver
     TestResult = MyHome.SmartBandInstruction(driver)
     self.assertTrue(TestResult)