Note |
---|
In Closed Beta - not yet publicly available |
Summary
Script rules allow you to create a Custom JavaScript condition that needs to be met for this rule to be matched.
...
Go to Profile > Project Mapping > Rules
Press Create rule to create a new rule
Once created, press the Edit (Cog Icon) Button.
Once in the Rule configuration press the Edit button to configure a Rule.
Now Press Script Configuration
Once press you will now see the configuration for the Script Rule.
Once the Script has been configured, you will then need to go to Rule Configuration and press Active as this will result in the Rule being enabled.
Testing Script Rule
...
Success or Error - This is used to define if the Script was able to be processed correctly or if there was an error with the script. This section also defines if the Test Case was a match or not.
Script Output - This is where the Print values are output, allowing for additional information to be displayed. e.g. using
print("Sender is correct: " + message.getHeader('from'));
Script Evaluation Time Metrics - Used to identify how long it took to evaluate the script against the selected Test Case.
...