Exemple #1
0
 def __init__(self, timeout_appear=5000, time_to_wait=60000, **kwargs):
     """
       :param timeout_appear: time to wait till the scanning progress bar appears
       :param time_to_wait: time to wait till the scanning progress bar is gone
       :param kwargs: serial, version, no_log and standard kwargs for base_step
     """
     BtStep.__init__(self, **kwargs)
     self.timeout_appear = timeout_appear
     self.time_to_wait = time_to_wait
     self.list = self.uidevice(packageName="com.android.cts.verifier")
     self.step_data = True
     self.set_passm("ctsverifier SecureServer in Discoverable mode ")
Exemple #2
0
 def __init__(self, use_intent=False, **kwargs):
     """
     :param use_intent: True to open from the home screen, False to use ctsverifier launch intent
     :param kwargs: serial, version, timeout, no_log and standard kwargs for base_step
     """
     BtStep.__init__(self, **kwargs)
     self.use_intent = use_intent
     self.step_data = True
     # part of logging message
     if self.version.startswith("8.1"):
         self.use_intent = True
         self.message_str = "with intent"
     else:
         self.use_intent = use_intent
         self.message_str = "from menu"
         self.set_passm("ctsverifier  opened " + self.message_str)
Exemple #3
0
 def __init__(self,
              serial_dev,
              dev_name,
              timeout_appear=5000,
              time_to_wait=60000,
              **kwargs):
     """
     :param timeout_appear: time to wait till the scanning progress bar appears
     :param time_to_wait: time to wait till the scanning progress bar is gone
     :param kwargs: serial, version, no_log and standard kwargs for base_step
     """
     BtStep.__init__(self, **kwargs)
     self.timeout_appear = timeout_appear
     self.time_to_wait = time_to_wait
     self.list = self.uidevice(packageName="com.android.cts.verifier")
     self.step_data = True
     self.dev_name = dev_name
     self.serial_dev = serial_dev
     self.set_passm("ctsverifier InsecureClient connected to " +
                    self.dev_name)