Note: Neither test features are available for workflows using a Shopify trigger. This is because the Shopify integration does not use xAPI statements.
There are two ways of testing your workflow, both are accessed by clicking Test in the top right of your screen:
Quick test asks you to supply an email address and to decide how conditions should respond. This is useful for quickly simulating what your workflow would do in a certain situation.
Full test requires an xAPI statement to be pasted into it and will run the entire workflow as if this xAPI statement has just been received by Learning Locker. This is useful if you want to fully test every aspect of your workflow, how it will behave for a specific user, and whether your conditions are operating as expected, but it does require you to have access to Learning Locker and a good working knowledge of it.
How to run a quick test
Click Test and Quick test:
You'll be prompted to select true or false for each condition in your workflow:
This will dictate whether the simulated user in the workflow will go down the true or false branch of the condition. Once you've done this for every condition, click Complete test in the top right.
You'll then be prompted to enter an email and full name. Emails will actually be sent to this address if there are send email items in your workflow. Once the test has completed, you'll see each item in the workflow highlighted in green (to indicate that it successfully completed its task), highlighted in red (to indicate that the item failed) or greyed out (to indicate that the item wasn't reached either due to a prior error or because it was on a condition branch that wasn't followed):
You can click Variables in the top right to view how your variables have been populated and adjusted. This can be very useful when determining why a workflow has or hasn't worked as expected:
If the workflow is still processing when you reach this screen, you can click Refresh to update the screen:
When you're done, click Return to workflow on the left:
How to run a full test
Click Test and Full test:
You will be prompted to paste an xAPI statement into the box below.
To get a statement, go to Learning Locker and use the query builder to locate an appropriate statement to trigger your workflow. Then highlight the statement and copy it.
If you toggle Suppress emails on, the workflow will not send any emails even if there are send email items in the workflow:
Once the test has completed, you'll see each item in the workflow highlighted in green (to indicate that it successfully completed its task), highlighted in red (to indicate that the item failed) or greyed out (to indicate that the item wasn't reached either due to a prior error or because it was on a condition branch that wasn't followed):
You can click Variables in the top right to view how your variables have been populated and adjusted. This can be very useful when determining why a workflow has or hasn't worked as expected:
If the workflow is still processing when you reach this screen, you can click Refresh to update the screen:
When you're done, click Return to workflow on the left: