Example #1
0
 def test_4_edit_floor(self, init_env):
     hp = HomePage(init_env)
     hp.click_system()
     sp = SystemPage(init_env)
     sp.click_infrastructure()
     ip = InfraPage(init_env)
     ip.edit_floor(infra_datas.edit_floor, infra_datas.edit_floor_remark)
     ip.edit_floor_assert()
Example #2
0
 def test_2_edit_damagetype(self, init_env):
     hp = HomePage(init_env)
     hp.click_system()
     sp = SystemPage(init_env)
     sp.click_damagegoods()
     dtp = DamageTypePage(init_env)
     dtp.edit_damagetype(damage_goods_datas.edit_type_name)
     dtp.is_element_dispear(damage_type_element.add_typename)
Example #3
0
 def test_5_delete_floor(self, init_env):
     hp = HomePage(init_env)
     hp.click_system()
     sp = SystemPage(init_env)
     sp.click_infrastructure()
     ip = InfraPage(init_env)
     ip.delete_floor()
     ip.delete_floor_assert()
Example #4
0
 def test_3_delete_damagetype(self, init_env):
     hp = HomePage(init_env)
     hp.click_system()
     sp = SystemPage(init_env)
     sp.click_damagegoods()
     dtp = DamageTypePage(init_env)
     dtp.delete_damagetype()
     dtp.is_element_dispear(damage_type_element.delete_type_button)
 def test_2_edit_hiretype(self, init_env):
     hp = HomePage(init_env)
     hp.click_system()
     sp = SystemPage(init_env)
     sp.click_hiregoods()
     htp = HireTypePage(init_env)
     htp.edit_hiretype(hire_goods_datas.edit_type_name)
     htp.is_element_dispear(hire_type_element.add_type_name)
Example #6
0
 def test_6_delete_building(self, init_env):
     hp = HomePage(init_env)
     hp.click_system()
     sp = SystemPage(init_env)
     sp.click_infrastructure()
     ip = InfraPage(init_env)
     ip.delete_building()
     ip.delete_build_assert()
 def test_3_delete_hiretype(self, init_env):
     hp = HomePage(init_env)
     hp.click_system()
     sp = SystemPage(init_env)
     sp.click_hiregoods()
     htp = HireTypePage(init_env)
     htp.delete_hiretype()
     htp.is_element_dispear(hire_type_element.delete_type_button)
Example #8
0
 def test_2_edit_build(self, init_env):
     hp = HomePage(init_env)
     hp.click_system()
     sp = SystemPage(init_env)
     sp.click_infrastructure()
     ip = InfraPage(init_env)
     ip.edit_building(infra_datas.edit_building_name,
                      infra_datas.edit_building_remark)
     ip.edit_build_assert()
Example #9
0
 def test_3_add_floor(self, init_env):
     hp = HomePage(init_env)
     hp.click_system()
     sp = SystemPage(init_env)
     sp.click_infrastructure()
     ip = InfraPage(init_env)
     ip.add_floor(infra_datas.add_startfloor, infra_datas.add_endfloor,
                  infra_datas.add_floor_remark)
     ip.add_floor_assert()
Example #10
0
 def test_3_delete_roominfo(self, init_env):
     hp = HomePage(init_env)
     hp.click_system()
     sp = SystemPage(init_env)
     sp.click_infrastructure()
     ip = InfraPage(init_env)
     ip.click_roominfo_menu()
     rip = RoomInfoPage(init_env)
     rip.delete_roominfo(roominfo_element.delete_room_button)
     rip.assert_delete()
 def test_5_delete_roomtype(self,init_env):
     hp = HomePage(init_env)
     hp.click_system()
     sp = SystemPage(init_env)
     sp.click_infrastructure()
     ip = InfraPage(init_env)
     ip.click_room_maintain()
     rmp = RoomMaintainPage(init_env)
     rmp.delete_roomtype()
     rmp.assert_delete(roomtype_maintain_element.delete_button)
 def test_4_enable_roomtype(self, init_env):
     hp = HomePage(init_env)
     hp.click_system()
     sp = SystemPage(init_env)
     sp.click_infrastructure()
     ip = InfraPage(init_env)
     ip.click_room_maintain()
     rmp = RoomMaintainPage(init_env)
     rmp.enable_roomtype()
     rmp.enable_assert()
 def test_2_edit_roomtype(self,init_env):
     hp = HomePage(init_env)
     hp.click_system()
     sp = SystemPage(init_env)
     sp.click_infrastructure()
     ip = InfraPage(init_env)
     ip.click_room_maintain()
     rmp = RoomMaintainPage(init_env)
     rmp.edit_roomtype(room_maintain_datas.edit_roomtype_name,room_maintain_datas.edit_beizhu)
     rmp.assert_add(roomtype_maintain_element.roomtype_name)
 def test_1_add_roomtype(self,init_env):
     hp = HomePage(init_env)
     hp.click_system()
     sp = SystemPage(init_env)
     sp.click_infrastructure()
     ip = InfraPage(init_env)
     ip.click_room_maintain()
     rmp = RoomMaintainPage(init_env)
     rmp.add_roomtype(room_maintain_datas.roomtype_name,room_maintain_datas.availableNumber,room_maintain_datas.deposit,room_maintain_datas.alias,room_maintain_datas.price,room_maintain_datas.exceedReserveNumber,room_maintain_datas.beizhu)
     rmp.assert_add(roomtype_maintain_element.roomtype_name)
 def test_6_delete_hiregoods(self, init_env):
     hp = HomePage(init_env)
     hp.click_system()
     sp = SystemPage(init_env)
     sp.click_hiregoods()
     htp = HireTypePage(init_env)
     htp.click_hiregoods_menu()
     hgp = HireGoodsPage(init_env)
     hgp.delete_hiregoods()
     hgp.is_element_disappear(hire_goods_element.delete_hiregoods_button)
Example #16
0
 def test_2_edit_roominfo(self, init_env):
     hp = HomePage(init_env)
     hp.click_system()
     sp = SystemPage(init_env)
     sp.click_infrastructure()
     ip = InfraPage(init_env)
     ip.click_roominfo_menu()
     rip = RoomInfoPage(init_env)
     rip.edit_roominfo(room_info_datas.edit_roomnumber)
     rip.assert_add(roominfo_element.add_savebutton)
 def test_2_edit_virtualroomtype(self, init_env):
     hp = HomePage(init_env)
     hp.click_system()
     sp = SystemPage(init_env)
     sp.click_infrastructure()
     ip = InfraPage(init_env)
     ip.click_virtual_roomtype_menu()
     vrtp = VirtualRoomTypePage(init_env)
     vrtp.edit_virtual_roomtype(virtual_roomtype_datas.edit_roomtype_name,
                                virtual_roomtype_datas.edit_beizhu)
     vrtp.assert_add(virtualroomtype_element.virtual_roomtype_name)
 def test_3_delete_virtualroomtype(self, init_env):
     hp = HomePage(init_env)
     hp.click_system()
     sp = SystemPage(init_env)
     sp.click_infrastructure()
     ip = InfraPage(init_env)
     ip.click_virtual_roomtype_menu()
     vrtp = VirtualRoomTypePage(init_env)
     vrtp.delete_virtual_roomtype()
     vrtp.delete_assert(
         virtualroomtype_element.delete_virtual_roomtype_button)
Example #19
0
 def test_6_delete_damagegoods(self, init_env):
     hp = HomePage(init_env)
     hp.click_system()
     sp = SystemPage(init_env)
     sp.click_damagegoods()
     dtp = DamageTypePage(init_env)
     dtp.click_damage_goods_menu()
     dgp = DamageGoodsPage(init_env)
     dgp.delete_damagegoods()
     dgp.is_element_disappear(damage_goods_element.delete_confirm_button)
     dgp.is_element_disappear(damage_goods_element.delete_goods_button)
 def test_5_edit_hiregoods(self, init_env):
     hp = HomePage(init_env)
     hp.click_system()
     sp = SystemPage(init_env)
     sp.click_hiregoods()
     htp = HireTypePage(init_env)
     htp.click_hiregoods_menu()
     hgp = HireGoodsPage(init_env)
     hgp.edit_hiregoods(hire_goods_datas.edit_goods_name,
                        hire_goods_datas.edit_goods_price,
                        hire_goods_datas.edit_goods_beizhu)
     hgp.is_element_exist(hire_goods_element.delete_hiregoods_button)
Example #21
0
 def test_1_add_build(self, init_env):
     hp = HomePage(init_env)
     hp.click_system()
     sp = SystemPage(init_env)
     sp.click_infrastructure()
     ip = InfraPage(init_env)
     ip.add_building(infra_datas.new_building_name,
                     infra_datas.new_building_remark)
     # ip.wait_newbuild_alert_disappear()
     #assert ip.build_is_exist() == infra_datas.new_building_name
     # ip.log()
     ip.new_build_assert()
Example #22
0
 def test_5_edit_damagegoods(self, init_env):
     hp = HomePage(init_env)
     hp.click_system()
     sp = SystemPage(init_env)
     sp.click_damagegoods()
     dtp = DamageTypePage(init_env)
     dtp.click_damage_goods_menu()
     dgp = DamageGoodsPage(init_env)
     dgp.edit_damagegoods(damage_goods_datas.edit_goods_name,
                          damage_goods_datas.edit_goods_comprice,
                          damage_goods_datas.edit_goods_price,
                          damage_goods_datas.edit_goods_beizhu)
     dgp.is_element_disappear(damage_goods_element.add_goodsname)
Example #23
0
 def test_4_batchadd_roominfo(self, init_batch):
     hp = HomePage(init_batch)
     hp.click_system()
     sp = SystemPage(init_batch)
     sp.click_infrastructure()
     ip = InfraPage(init_batch)
     ip.click_roominfo_menu()
     rip = RoomInfoPage(init_batch)
     rip.batchadd_roominfo(room_info_datas.batch_add_roomnumber_start,
                           room_info_datas.batch_add_roomnumber_end,
                           room_info_datas.batch_add_phonesub_start,
                           room_info_datas.batch_add_phonesub_end,
                           room_info_datas.batch_add_phoneout_start,
                           room_info_datas.batch_add_phoneout_end)
     rip.assert_batchadd()