Validation Editor view
The Validation Editor lets you quickly and easily manage JavaScript functions to validate events in an Adobe Experience Platform Assurance session. Each function receives the events in an Assurance session. You can write functions to validate your client configuration, event conditions, tests and use cases.
Get started with the Validation Editor
After setting up Assurance, on the Home view, select Validation Editor.
Write a validation function
This feature allows you to create, edit, or delete validation functions for your Adobe Experience Platform Assurance sessions.
- Select Create a New Validation.
- Enter a name to identify the validation, then provide a category and a description.
- Edit the code in the editor to validate the events for your Assurance session.
Once the function tests are complete, select Publish to save your validation.
Event definition
uuid
timestamp
eventNumber
vendor
type
payload
ACPExtensionEventSource
and ACPExtensionEventType
.annotations
Annotation definition
uuid
type
payload
Validation results
The validation function is expected to return an object that contains the following:
message
events
links
ValidationResultLink
objects to reference documentation and other resources `{( type: ‘doc’result
View the validation results
The results of the function are displayed in the results section below the code editor. If the validation result is unknown
or not matched
and the events
array has one or more uuids
, the events will be highlighted in the timeline with the following colors:
- Green - matched
- Orange - unknown
- Red - not matched
Troubleshooting
You can add console.log()
in your function to print items to the developer console. Alternatively, you can use the message property of the result object to debug messages to the results panel.
If an error occurs in the JavaScript code editor, an error status is displayed along with the reason.
To learn more about validations, please visit the Adobe Experience Platform Assurance Validations GitHub. There you will find examples of validations owned by Adobe. See the wiki for more detailed descriptions of validations.