Controls recording and playback orchestration for Splash test scripts.
More...
|
| public | Splash (bool bPlayback=FALSE, bool bRecord=FALSE) |
| | The Default Constructor. More...
|
| |
| public synchronized string | getScriptPath () |
| | Returns and creates the Splash script directory if needed. More...
|
| |
| void | reactOnCommands (eSplash splashMode, string sDP, string sCommand, string sDP2, string sResponse) |
| | Handles incoming Splash commands for play and record workflows. More...
|
| |
| public void | record (string sTestCase, string sPanelFile, string sParams="") |
| | Starts recording mode and launches UI process. More...
|
| |
| public void | stop (string sTestCase, string sPanel, string sParams) |
| | Stops recording and optionally writes script to panel/testcase path. More...
|
| |
| public void | play (string sTestCase, string sPanelFile, string startParams="") |
| | Starts playback by launching the UI manager. More...
|
| |
| public void | startManager (string sTestCase, string sPanelFile, string startParams="") |
| | Starts UI process for playback execution. More...
|
| |
| public string | getParamsFromScript (string sScriptFile) |
| | Reads optional parameter line from a test script header. More...
|
| |
|
|
static public string | sTestScriptPath |
| | Root directory where generated Splash scripts are stored.
|
| |
Controls recording and playback orchestration for Splash test scripts.
- Attention
- This documentation is created with the help of an artificial intelligence.
◆ Splash()
| public Splash::Splash |
( |
bool |
bPlayback = FALSE, |
|
|
bool |
bRecord = FALSE |
|
) |
| |
The Default Constructor.
- Parameters
-
| bPlayback | Enables playback command handling. |
| bRecord | Enables recording command handling. |
◆ getCommandFromDP()
| static private string Splash::getCommandFromDP |
( |
| ) |
|
|
static |
Reads current command payload from Splash datapoint.
- Returns
- Current Splash command string.
◆ getParamsFromScript()
| public string Splash::getParamsFromScript |
( |
string |
sScriptFile | ) |
|
Reads optional parameter line from a test script header.
- Parameters
-
| sScriptFile | Script file path. |
- Returns
- Extracted parameter string or empty string.
◆ getScriptPath()
| public synchronized string Splash::getScriptPath |
( |
| ) |
|
Returns and creates the Splash script directory if needed.
- Returns
- Absolute script directory path.
◆ getStateFromString()
| static public eSplash Splash::getStateFromString |
( |
const string & |
sCommand | ) |
|
|
static |
Converts textual Splash command to enum state.
- Parameters
-
| sCommand | Command payload string. |
- Returns
- Matching splash state.
◆ initInterface()
| static public int Splash::initInterface |
( |
| ) |
|
|
static |
Initializes Splash datapoints when missing.
- Returns
- 0 on success.
◆ isSafeTestScriptPath()
| static private bool Splash::isSafeTestScriptPath |
( |
const string & |
path | ) |
|
|
static |
Checks whether a generated test path stays below scripts/tests.
- Parameters
-
| path | Project-relative test script path. |
- Returns
- true when the path is a safe relative .ctl path.
◆ play()
| public void Splash::play |
( |
string |
sTestCase, |
|
|
string |
sPanelFile, |
|
|
string |
startParams = "" |
|
) |
| |
Starts playback by launching the UI manager.
- Parameters
-
| sTestCase | Test case script. |
| sPanelFile | Panel file to open. |
| startParams | Optional playback parameters. |
◆ reactOnCommands()
| void Splash::reactOnCommands |
( |
eSplash |
splashMode, |
|
|
string |
sDP, |
|
|
string |
sCommand, |
|
|
string |
sDP2, |
|
|
string |
sResponse |
|
) |
| |
Handles incoming Splash commands for play and record workflows.
- Parameters
-
| splashMode | Current command mode. |
| sDP | Triggering datapoint. |
| sCommand | Received command payload. |
| sDP2 | Response datapoint. |
| sResponse | Response payload. |
◆ record()
| public void Splash::record |
( |
string |
sTestCase, |
|
|
string |
sPanelFile, |
|
|
string |
sParams = "" |
|
) |
| |
Starts recording mode and launches UI process.
- Parameters
-
| sTestCase | Test case identifier. |
| sPanelFile | Panel to record. |
| sParams | Additional startup parameters. |
◆ setCommandOnDP()
| static private void Splash::setCommandOnDP |
( |
string |
sCommand | ) |
|
|
static |
Writes a command to Splash command/response datapoints.
- Parameters
-
◆ startManager()
| public void Splash::startManager |
( |
string |
sTestCase, |
|
|
string |
sPanelFile, |
|
|
string |
startParams = "" |
|
) |
| |
Starts UI process for playback execution.
- Parameters
-
| sTestCase | Test case script. |
| sPanelFile | Panel file to open. |
| startParams | Optional startup parameters. |
◆ stop()
| public void Splash::stop |
( |
string |
sTestCase, |
|
|
string |
sPanel, |
|
|
string |
sParams |
|
) |
| |
Stops recording and optionally writes script to panel/testcase path.
- Parameters
-
| sTestCase | Test case identifier. |
| sPanel | Panel file name. |
| sParams | Additional command parameters. |
The documentation for this class was generated from the following file: