Running the Smoke Test > Smoke Test Step 1. Validate the Connection to ThingWorx Platform
Smoke Test Step 1. Validate the Connection to ThingWorx Platform
The second test validates the AlwaysOn connection from the Azure IoT Hub Connector to the ThingWorx Platform. This test requires a websocket URL and application key that are loaded from the Connector configuration file. This test validates that the connection is properly configured by issuing a ThingWorx service call to check for the existence of a random Thing.
The steps for this test are as follows:
1. Load and parse the Connector configuration file specified by the Java system property, -Dconfig.file=<pathToConfigFile>.
2. Validate that the configuration settings for the application key and URL to the ThingWorx Platform are present.
3. Initialize an AlwaysOn WebSocket connection to the ThingWorx Platform.
a. This step loads the WebSocket URL for the ThingWorx Platform and the application key for the Connector from your configuration file.
4. To validate that the connection is properly configured, issue a ThingWorx service call to check for the existence of a random Thing. This service call validates whether or not the connection is valid.
If this test encounters a problem an exception is logged with a stack trace of the exception. For information on exceptions, refer to Troubleshooting the Smoke Test.
If this test succeeds, the next test in the series, , runs.