Пример #1
0
def test_android_getsysinfo():
    devs = airtest.getDevices()
    if not devs:
        pytest.skip('not devices detected')
    if devs:
        phoneNo, phoneType = devs[0]
    print phoneNo
    app = airtest.connect(phoneNo, device='android')
    print app.dev.getdevinfo()
Пример #2
0
def test_android_getsysinfo():
    devs = airtest.getDevices()
    if not devs:
        pytest.skip('not devices detected')
    if devs:
        phoneNo, phoneType = devs[0]
    print phoneNo
    app = airtest.connect(phoneNo, device='android')
    print app.dev.getdevinfo()
Пример #3
0
 def airDeviceChanged(self, index=0):
     print 'changed', self.cbDevice.itemText(index)
     item = self.cbDevice.itemText(index)
     self.cbPhoneno.clear()
     if item == 'android':
         for phoneno, type_ in airtest.getDevices():
             if type_ == 'device':
                 self.cbPhoneno.addItem(phoneno)
     elif item == 'windows':
         import utils
         for name in utils.getAllWinProcessName():
             if name.endswith('.exe'):
                 self.cbPhoneno.addItem(name)
Пример #4
0
 def airDeviceChanged(self, index=0):
     print 'changed', self.cbDevice.itemText(index)
     item = self.cbDevice.itemText(index)
     self.cbPhoneno.clear()
     if item == 'android':
         for phoneno, type_ in airtest.getDevices():
             if type_ == 'device':
                 self.cbPhoneno.addItem(phoneno)
     elif item == 'windows':
         import utils
         for name in utils.getAllWinProcessName():
             if name.endswith('.exe'):
                 self.cbPhoneno.addItem(name)