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_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_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_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)