Esempio n. 1
0
 def __action_stop_app(self, action):
     """
     行为执行:stop_app
     :param action:
     :return:
     """
     parms = action.parms
     if parms is None:
         DriverBase.close_app(Var.package)
     elif len(parms) == 1:
         DriverBase.close_app(parms[0])
     else:
         raise TypeError(
             'closeApp takes 1 positional argument but {} were giver'.
             format(len(parms)))
Esempio n. 2
0
 def tearDown(self):
     if Var.restart and not self.skip:
         DriverBase.close_app(None)