Testing the notification configuration
This section is displayed only in notification configuration testing mode. It is used to verify the notification configuration and test data that PTM sends to the external PILOT system.
The feature is intended for administrators and developers who need to test an integration without waiting for a real event from a device.

How testing works
First, the notification configuration created in the external PILOT system is entered in PTM. Then one or more test data packages are sent. PTM processes them as if they had been received from a real device or external system.
This makes it possible to check:
-
configuration correctness
-
incoming data processing
-
notification delivery
-
the integration’s response to different events
-
possible errors in the transmitted data
Testing fields
Configuration
Paste the notification configuration from PILOT into this field.
The configuration defines which event should be processed and which actions the system should perform. It is usually provided in JSON format.
Package data
Enter the data that should be received by the system when the event occurs.
The package can be provided in JSON or XML format. It contains values that would normally be received from a device or message broker.
You can send:
-
one package
-
several packages consecutively
If there are several packages, place each package on a separate line. PTM will process them in sequence with the specified delay.
Sleep, sec
Specify the delay between sending or processing packages, in seconds.
For example, if you enter 5, PTM will process packages at five-second intervals. The default value is 1.
Log
The Log area displays test results, including successful delivery messages, errors, and technical information.
Testing the configuration
1. Copy the notification configuration from PILOT
2. Paste it into the Configuration field
3. If necessary, change the Sleep, sec value
4. Click Send configuration
5. Check the result in the Log area
After the configuration is sent, it is created for the current contract and can be used for further package testing.
Testing package data
1. Prepare a test package in JSON or XML format
2. Paste it into the Package data field
3. To test several events, add several packages, one per line
4. Specify the delay in the Sleep, sec field
5. Click Send package
6. Check the result in the Log area
Clearing the log
Click Delete log to clear the messages in the Log area.
This does not change the configuration or delete the integration settings.
Before testing, check that the configuration and package data comply with the requirements of the connected system.