예제 #1
0
 def test_del_single_host_resource(self):
     page = HostResourcePage(self.driver)
     page.into_host_resource()
     page.select_host_click_sub_menu(HOST_NAME)
     page.click_del_menu()
     page.click_confirm_alert()
     page.assert_result(action='del')
예제 #2
0
 def test_batch_del_host_resource(self):
     page = HostResourcePage(self.driver)
     page.into_host_resource()
     for hostname in HOST_NAME_LIST:
         page.select_host(hostname)
     page.click_sub_menu()
     page.click_del_menu()
     page.click_confirm_alert()
     page.assert_result(action='del')
예제 #3
0
 def test_del_virtul_adapter(self):
     page = HostResourcePage(self.driver)
     page.into_host_resource()
     page.select_host_click_sub_menu(HOST_NAME)
     page.click_virtul_adapter_menu()
     page.check_first_nic()
     page.click_sub_menu()
     page.click_del_menu()
     page.click_confirm_alert()
     try:
         self.driver.get_text_element("div", "删除虚拟网卡成功")
     except Exception as e:
         page.final_assert(e)
     else:
         page.final_assert(True)