Step 5. Registration Message
The fifth test validates that a registration message is successfully sent by the test Thing via the eMessage Connector to the ThingWorx Platform.
If this test throws an exception, the smoke test checks the setting of the isFailFast flag. For this test, this flag is set to false. so the next validator in the chain executes. In addition, the exception is logged (with a stack trace of the exception).
The steps for this test are as follows:
1. The smoke test requests the current values of the properties, firstRegistrationDate, latestRegistrationDate, and lastConnection on the test Thing from the ThingWorx Platform.
2. The smoke test sends a registration message to the Connector for the test Thing, which was created in Step 4.
3. The Connector receives the registration message and first binds the test Thing on the ThingWorx platform. This action results in an update to the lastConnection property on the test Thing. Next the Connector updates the firstRegistrationDate, latestRegistrationDate, and lastConnection properties on the test Thing with the current date/time of the Connector host.
4. The smoke test requests the values of the firstRegistrationDate, latestRegistrationDate, and lastConnection properties on the test Thing from the platform again.
5. If the values of these properties have changed, the smoke test returns success. If, however, the values have NOT changed, the smoke test returns an error.
Was this helpful?