ScriptInterpreter.ScriptInterpreter Class Reference


Detailed Description

TestsCommmands process requests to produce run tests which are scripted.

#include <class_script_interpreter_1_1_script_interpreter.h>

Inheritance diagram for ScriptInterpreter.ScriptInterpreter:
Inheritance graph
[legend]

List of all members.

Public Member Functions

  __init__ ()
  getCurrentScript ()
  runScript ()
  Run a script via a thread.
  deactivate ()
  When the interpreter is deactivated, we need to ensure that the thread that is running the test is dead.
  EXECUTE_MODULE ()
  Similar to EXECUTE_SCRIPT, except that we pass in the already loaded module (which should have instantiate method) instead of the name of the module to load.
  EXECUTE_SCRIPT ()
  Execute test passed in the message data.
  SCRIPT_STARTED ()
  This message is sent when the acceptance test is initiated before any other message is sent.
  SCRIPT_ENDED ()
  This message is sent as the last message of the running test.
  SCRIPT_CANCEL ()
  If any test is running, terminate it now.
  SCRIPT_SET_QUIET_MODE ()
  SCRIPT_SET_QUIT_MODE ()
  DOCUMENT_LOADED ()
  LOCATOR_SET_ROOT ()
  DOCUMENT_CLOSED ()
  HEADS_UP_DISPLAY_MODE_CHANGED ()
  MANIPULATOR_ENABLE_STATUS_CHANGED ()
  APPLICATION_VIEW_POSITION_AND_SIZE_CHANGED ()
  Store changes to the size of the window.

Member Function Documentation

ScriptInterpreter.ScriptInterpreter.__init__ ( )
ScriptInterpreter.ScriptInterpreter.getCurrentScript ( )
ScriptInterpreter.ScriptInterpreter.runScript ( )

Run a script via a thread.

Note that only one script can be ran asynchronously at a time. If there is still another script running, this call will produce a warning, return False and do nothing.

ScriptInterpreter.ScriptInterpreter.deactivate ( )

When the interpreter is deactivated, we need to ensure that the thread that is running the test is dead.

Reimplemented from MessageInterpreter.CompositeMessageInterpreter.

ScriptInterpreter.ScriptInterpreter.EXECUTE_MODULE ( )

Similar to EXECUTE_SCRIPT, except that we pass in the already loaded module (which should have instantiate method) instead of the name of the module to load.

ScriptInterpreter.ScriptInterpreter.EXECUTE_SCRIPT ( )

Execute test passed in the message data.

It first reloads it to ensure that the latest version of the test is always ran. Arguments: testName = name of the test module to be executed. quit = if True, force the application exit

ScriptInterpreter.ScriptInterpreter.SCRIPT_STARTED ( )

This message is sent when the acceptance test is initiated before any other message is sent.

isTestScript is False for scripts, True for tests.

ScriptInterpreter.ScriptInterpreter.SCRIPT_ENDED ( )

This message is sent as the last message of the running test.

ScriptInterpreter.ScriptInterpreter.SCRIPT_CANCEL ( )

If any test is running, terminate it now.

ScriptInterpreter.ScriptInterpreter.SCRIPT_SET_QUIET_MODE ( )
ScriptInterpreter.ScriptInterpreter.SCRIPT_SET_QUIT_MODE ( )
ScriptInterpreter.ScriptInterpreter.DOCUMENT_LOADED ( )
ScriptInterpreter.ScriptInterpreter.LOCATOR_SET_ROOT ( )
ScriptInterpreter.ScriptInterpreter.DOCUMENT_CLOSED ( )
ScriptInterpreter.ScriptInterpreter.HEADS_UP_DISPLAY_MODE_CHANGED ( )
ScriptInterpreter.ScriptInterpreter.MANIPULATOR_ENABLE_STATUS_CHANGED ( )
ScriptInterpreter.ScriptInterpreter.APPLICATION_VIEW_POSITION_AND_SIZE_CHANGED ( )

Store changes to the size of the window.

We need that since the tests will change the size of the window temporarily and they need to know what to restore the size to.


ScriptInterpreter.ScriptInterpreter ScriptInterpreter.ScriptInterpreter ScriptInterpreter.ScriptInterpreter ScriptInterpreter.ScriptInterpreter ScriptInterpreter.ScriptInterpreter ScriptInterpreter.ScriptInterpreter ScriptInterpreter.ScriptInterpreter ScriptInterpreter.ScriptInterpreter ScriptInterpreter.ScriptInterpreter ScriptInterpreter.ScriptInterpreter
ScriptInterpreter.ScriptInterpreter ScriptInterpreter.ScriptInterpreter ScriptInterpreter.ScriptInterpreter ScriptInterpreter.ScriptInterpreter ScriptInterpreter.ScriptInterpreter ScriptInterpreter.ScriptInterpreter ScriptInterpreter.ScriptInterpreter ScriptInterpreter.ScriptInterpreter ScriptInterpreter.ScriptInterpreter ScriptInterpreter.ScriptInterpreter