Пример #1
0
 def test_MyAPP_003FaultRepair(self):
     """用例名称:我家→全部应用→我的报事报修"""
     driver = self.driver
     MyHome.IntoMyHome(driver)
     # 进入我家页面
     TestResult = MyAPP.MyApplication(driver, AppName="我的报修", wojia=True)
     self.assertTrue(TestResult)
Пример #2
0
 def test_MyAPP_004CommunityServices(self):
     """用例名称:我家→全部应用→社区服务"""
     driver = self.driver
     MyHome.IntoMyHome(driver)
     # 进入我家页面
     TestResult = MyAPP.MyApplication(driver, AppName="社区服务", wojia=True)
     self.assertTrue(TestResult)
Пример #3
0
 def test_MyAPP_001ShoppingCart(self):
     """用例名称:我家→全部应用→我的购物车"""
     driver = self.driver
     MyHome.IntoMyHome(driver)
     # 进入我家页面
     TestResult = MyAPP.MyApplication(driver, AppName="我的购物车", wojia=True)
     self.assertTrue(TestResult)
Пример #4
0
 def test_MyAPP_002BindingRooms(self):
     """用例名称:我家→全部应用→房间绑定"""
     driver = self.driver
     MyHome.IntoMyHome(driver)
     # 进入我家页面
     TestResult = MyAPP.MyApplication(driver, AppName="房间绑定", wojia=True)
     self.assertTrue(TestResult)
Пример #5
0
 def test_MyAPP_006FaceRecognition(self):
     """用例名称:我家→全部应用→人脸识别"""
     driver = self.driver
     MyHome.IntoMyHome(driver)
     # 进入我家页面
     TestResult = MyAPP.MyApplication(driver, AppName="人脸识别", wojia=True)
     self.assertTrue(TestResult)
Пример #6
0
 def test_MyAPP_009IntoALLAPP(self):
     """用例名称:我家→全部应用→进入全部应用"""
     driver = self.driver
     MyHome.IntoMyHome(driver)
     # 进入我家页面
     TestResult = MyAPP.IntoALLAPP(driver)
     self.assertTrue(TestResult)
Пример #7
0
 def test_MyAPP_007VisitorInvitation(self):
     """用例名称:我家→全部应用→访客邀请"""
     driver = self.driver
     MyHome.IntoMyHome(driver)
     # 进入我家页面
     TestResult = MyAPP.MyApplication(driver, AppName="访客邀请", wojia=True)
     self.assertTrue(TestResult)
Пример #8
0
 def test_MyAPP_005SmartHome(self):
     """用例名称:我家→全部应用→智能家居"""
     driver = self.driver
     MyHome.IntoMyHome(driver)
     # 进入我家页面
     TestResult = MyAPP.MyApplication(driver, AppName="智能家居", wojia=True)
     self.assertTrue(TestResult)
Пример #9
0
 def test_MyAPP_008MyActivity(self):
     """用例名称:我家→全部应用→我的活动"""
     driver = self.driver
     MyHome.IntoMyHome(driver)
     # 进入我家页面
     TestResult = MyAPP.MyApplication(driver, AppName="我的活动", wojia=True)
     self.assertTrue(TestResult)
Пример #10
0
 def test_MyHome_008WoJiaOrder(self):
     """用例名称:我家→我的订单查看订单详情"""
     driver = self.driver
     MyHome.IntoMyHome(driver)
     time.sleep(2)
     TestResult = MyOrder.WoJiaOrder(driver)
     # 我家的订单查看详情
     self.assertTrue(TestResult)
Пример #11
0
 def test_MyHome_006MyTorrent(self):
     """用例名称:我家→进入我的种子"""
     driver = self.driver
     MyHome.IntoMyHome(driver)
     time.sleep(2)
     TestResult = MyTorrent.MyTorrent(driver)
     # 进入我的种子
     self.assertTrue(TestResult)
Пример #12
0
 def test_MyHome_005DeleteAddress(self):
     """用例名称:我家→地址管理→删除收货地址"""
     driver = self.driver
     MyHome.IntoMyHome(driver)
     time.sleep(2)
     TestResult = MyHome.DeleteAddress(driver, 1)
     # 地址管理删除收货地址driver后面的数字为删除次数
     self.assertTrue(TestResult)
Пример #13
0
 def test_MyHome_004AddressManage(self):
     """用例名称:我家→地址管理→增加收货地址"""
     driver = self.driver
     MyHome.IntoMyHome(driver)
     time.sleep(2)
     TestResult = MyHome.AddressManage(driver)
     # 地址管理增加收货地址
     self.assertTrue(TestResult)
Пример #14
0
 def test_MyHome_002Change_ProfilePhoto(self):
     """用例名称:我家→修改个人资料中的头像功能"""
     driver = self.driver
     MyHome.IntoMyHome(driver)
     time.sleep(1)
     TestResult = MyHome.Change_ProfilePhoto(driver)
     ##修改个人头像
     self.assertTrue(TestResult)
Пример #15
0
 def test_MyHome_009AllOrder(self):
     """用例名称:我家→我家查看全部订单"""
     driver = self.driver
     MyHome.IntoMyHome(driver)
     time.sleep(2)
     TestResult = MyOrder.AllOrder(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_001MsgSetting(self):
     """用例名称:我家→测试我的消息、设置、进入个人资料是否正常显示"""
     driver = self.driver
     MyHome.IntoMyHome(driver)
     # 进入我家页面
     time.sleep(3)
     TestResult = MyHome.MyHome_MsgSetting(driver)
     # 测试我的消息、设置、进入个人资料是否正常显示
     self.assertTrue(TestResult)
Пример #18
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)
Пример #19
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)