Exemplo n.º 1
0
 def check_scanner(self):
     status = checkfile.check_stauts(
         'resource-id="ali_key_bluetooth_available_device_list"')
     if status == False:
         raise Exception('start scan is Failed')
Exemplo n.º 2
0
 def bt(self):
     Command(BT_Comm['BT']).start()
     time.sleep(1)
     status = checkfile.check_stauts('开放检测')
     return status
Exemplo n.º 3
0
 def check_pause(self, timeout=10):
     time.sleep(timeout)
     self.play_button()
     time.sleep(2)
     if not checkfile.check_stauts('text="00:14/01:00"'):
         raise Exception("Pause the audio play is faied")
Exemplo n.º 4
0
 def check_adapter_name(self, args):
     status = checkfile.check_stauts(args)
     if status == True:
         logger.info('adapter name is right')
     else:
         raise Exception('adapter name is wrong')
Exemplo n.º 5
0
 def volume_up(self):
     BaseAPI().find_setting()
     Command(Audio_Comm['VOLUME_SETTING']).start()
     status = checkfile.check_stauts('text="静音"')
     if not status == True:
         raise Exception('open the volume  is failed')