Пример #1
0
 def setUp(self):
     ''' init wifi1 and wifi2 
     @fn setUp
     @param self
     @return
     '''
     # init wifi1 and wifi2
     self.wifi1 = wifi.WiFiFunction(self.targets[0])
     self.wifi2 = wifi.WiFiFunction(self.targets[1])
Пример #2
0
 def tearDownClass(cls):
     '''disable wifi, it will block ethernet connection when rebooting
     @fn tearDownClass
     @param cls
     @return
     '''
     wifi1 = wifi.WiFiFunction(cls.tc.targets[0])
     wifi2 = wifi.WiFiFunction(cls.tc.targets[1])
     wifi1.disable_wifi()
     wifi2.disable_wifi()
Пример #3
0
    def setUpClass(cls):
        ''' initialize wifi class 
        @fn setUp
        @param self
        @return
        '''
        wifi1 = wifi.WiFiFunction(cls.tc.targets[0])
        wifi2 = wifi.WiFiFunction(cls.tc.targets[1])

        # Connect to same WiFi AP
        ap_type = "hidden"
        ssid = ssid_config.get("Connect", "ssid_80211n")
        pwd = ssid_config.get("Connect", "passwd_80211n")
        wifi1.execute_connection(ap_type, ssid, pwd)
        wifi2.execute_connection(ap_type, ssid, pwd)
Пример #4
0
 def setUp(self):
     ''' initialize wifi class 
     @fn setUp
     @param self
     @return
     '''
     self.wifi = wifi.WiFiFunction(self.target)