Пример #1
0
 def test_import_file(self):
     resource_number = self.resource.get_text(
         resource_pool.loc("resource_number"))
     self.resource.click_upload_file()
     self.resource.file_upload(data("import_file"), wait=2)
     self.resource.not_text_element(resource_pool.loc("resource_number"),
                                    resource_number, "【导入资源池】")
Пример #2
0
 def test_delete_resource_pool(self):
     resource_number = self.resource.get_text(
         resource_pool.loc("resource_number"))
     self.resource.click_select_all()
     self.resource.click_delete_button()
     self.resource.click_delete_confirm()
     self.resource.not_text_element(resource_pool.loc("resource_number"),
                                    resource_number, "【删除资源池】")
 def test_new_resource(self, resource):
     resource_number = self.resource.get_text(
         resource_pool.loc("resource_number"))
     self.resource.click_new_resource_poll()
     self.resource.input_group_name(resource["group_name"])
     self.resource.click_type(resource["type"])
     self.resource.click_soft(resource["soft"])
     self.resource.input_describe(resource["describe"])
     self.resource.input_search(resource["node_name"])
     self.resource.click_node()
     self.resource.click_new_confirm()
     self.resource.not_text_element(resource_pool.loc("resource_number"),
                                    resource_number,
                                    "新建资源池【%s】" % resource["group_name"])
 def test_new_resource(self, pool=data("edit_resource_pool")):
     self.resource.click_resource_pool()
     self.resource.input_edit_resource(pool["edit_describe"])
     self.resource.input_search(pool["node_name"])
     self.resource.click_node()
     self.resource.click_new_confirm()
     self.resource.displayed_true(resource_pool.loc("loc_describe"),
                                  "编辑资源池【%s】" % pool["pool_name"])
Пример #5
0
 def test_particulars(self, particulars=data("edit_resource_pool")):
     self.resource.input_search_input(particulars["pool_name"])
     self.resource.click_particulars()
     self.resource.displayed_true(resource_pool.loc("loc_particulars"),
                                  "打开【%s】详情" % particulars["pool_name"])