Esempio n. 1
0
 def __action_start_app(self, action):
     """
     行为执行:start_app
     :param action:
     :return:
     """
     parms = action.parms
     if len(parms) == 1:
         DriverBase.launch_app(parms[0])
     else:
         raise TypeError(
             'launchApp missing 1 required positional argument: package_info'
         )
Esempio n. 2
0
 def setUp(self):
     if Var.restart and not self.skip:
         DriverBase.launch_app(None)