예제 #1
0
 def test_get_physical_adapter_list(self):
     page = HostResourcePage(self.driver)
     page.into_host_resource()
     page.select_host_click_sub_menu(HOST_NAME)
     page.click_physical_adapter_menu()
     try:
         self.driver.get_contains_text_element("th", "IPv4地址")
     except Exception as e:
         page.final_assert(e)
     else:
         page.final_assert(True)
예제 #2
0
    def test_nic_discern(self):

        page = HostResourcePage(self.driver)
        page.into_host_resource()
        page.select_host_click_sub_menu(HOST_NAME)
        page.click_physical_adapter_menu()
        page.check_first_nic()
        page.click_nic_discern()

        try:
            self.driver.get_text_element("div", "网卡识别成功。")
        except Exception as e:
            page.final_assert(e)
        else:
            page.final_assert(True)