Class RecordScriptTestInterface
java.lang.Object
com.kingsrook.qqq.backend.core.actions.scripts.RecordScriptTestInterface
- All Implemented Interfaces:
TestScriptActionInterface
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(TestScriptInput input, TestScriptOutput output) Execute a test script.Define the list of input fields for testing the script.Define the list of output fields when testing the script.void
setupTestScriptInput
(TestScriptInput testScriptInput, ExecuteCodeInput executeCodeInput) Called to adapt or translate data from the TestScriptInput (which would just have a map of name-value pairs) to the actual input object(s) used by the script.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.kingsrook.qqq.backend.core.actions.scripts.TestScriptActionInterface
processTestScriptOutput
-
Constructor Details
-
RecordScriptTestInterface
public RecordScriptTestInterface()
-
-
Method Details
-
setupTestScriptInput
public void setupTestScriptInput(TestScriptInput testScriptInput, ExecuteCodeInput executeCodeInput) throws QException Description copied from interface:TestScriptActionInterface
Called to adapt or translate data from the TestScriptInput (which would just have a map of name-value pairs) to the actual input object(s) used by the script. Note - such a method may want or need to put an "output" object into the executeCodeInput's context map.- Specified by:
setupTestScriptInput
in interfaceTestScriptActionInterface
- Throws:
QException
-
execute
Description copied from interface:TestScriptActionInterface
Execute a test script.- Specified by:
execute
in interfaceTestScriptActionInterface
- Throws:
QException
-
getTestInputFields
Description copied from interface:TestScriptActionInterface
Define the list of input fields for testing the script. The names of these fields will end up as keys in the setupTestScriptInput method's testScriptInput object.- Specified by:
getTestInputFields
in interfaceTestScriptActionInterface
-
getTestOutputFields
Description copied from interface:TestScriptActionInterface
Define the list of output fields when testing the script. The output object returned from processTestScriptOutput should have keys that match these field names.- Specified by:
getTestOutputFields
in interfaceTestScriptActionInterface
-