Acquia Journey allows graphs and nodes to be tested interactively prior to deployment. This allows the testing of individual components using user supplied test cases, by specifying one of an input data JavaScript object, a number of iterations of a graph or by specifying a fixed time duration. Graphs can only be tested when they are valid. Graph validity can be tested explicitly by pressing the Validate button at the top of the graph or this will be tested if the start button is pressed. If the graph is valid the Valid graph icon is displayed at the top right of the graph window. It is not necessary to validate the graph manually as the graph will be validated before the testing console is opened and any errors will prevent the testing console opening.
The testing console is available at the bottom of the graph window and provides insight into the execution of each step in the graph and the state of the data store and public variables at the end of the execution. The testing console bar provides four buttons for control of the testing console. From left to right:
At the start of each execution, after the Start button has been pressed, the Testing Settings window will appear.
The Testing Sessions window allows you to paste in some JSON data to be used as the input to the graph. This data could be the output of a previous graph test.
If the graph has a listener then the Testing Settings window will show the three modes of testing the graph.
The following interactive graph testing modes are available:
Note that during visual testing there are some limits on graph execution:
These limits are set so that interactive graphs don’t lock up engines unnecessarily.
The testing console will show the Running button if the graph is a listener. If the graph is not a listener then it will progress to the Finished state.
The Testing Console displays the following information for every node executed in the graph:
The information in the testing console must be expanded using the plus icon. Second and subsequent runs appear below the first run.
After each execution the Data Store values for the schema and any public variables are also shown. The final state of the schema is available to be viewed and copied by pressing the Display JSON button.
Errors are shown highlighted in orange and show the detail of the error message from the engine.
If the graph is a listener and there are multiple iterations then the graph will show the path for a particular transaction if the mouse is held over that transaction. The graph highlights the path with an dark blue highlight.