예제 #1
0
 def batch(self, filename):
     # The contents of the scenario file are meant as a batch list: send to server and clear stack
     result = stack.openfile(filename)
     if result:
         scentime, scencmd = stack.get_scendata()
         self.send_event(b'BATCH', (scentime, scencmd))
         self.reset()
     return result
예제 #2
0
 def batch(self, filename):
     # The contents of the scenario file are meant as a batch list: send to server and clear stack
     result = stack.openfile(filename)
     if result:
         scentime, scencmd = stack.get_scendata()
         self.send_event(b'BATCH', (scentime, scencmd))
         self.reset()
     return result
예제 #3
0
 def batch(self, filename):
     # The contents of the scenario file are meant as a batch list: send to manager and clear stack
     result = stack.openfile(filename)
     scentime, scencmd = stack.get_scendata()
     if result is True:
         manager.sendEvent(BatchEvent(scentime, scencmd))
     self.reset()
     return result