Step 2. Connection
The second test validates the connection from 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 validation test 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. Using the ThingWorx Java SDK, initialize an AlwaysOn Websocket connection to the ThingWorx Platform.
a. This step requires that the configuration file contains the WebSocket URL for the ThingWorx Platform and the application key for the Connector to authenticate with ThingWorx Platform.
2. To validate that the connection is properly configured, issue a ThingWorx service call to check for the existence of a random Thing. The service call always returns false, but it does validate whether or not the connection is valid.
Was this helpful?