Step 4. Create a Test Thing
The fourth test creates a test Thing on the ThingWorx Platform. This test Thing is used for the remaining validation tests..
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. Validate creating a Thing on the ThingWorx Platform, using the following settings:
a. ThingName = SmokeTestThing_<UUID>
b. modelNumber = SmokeTestThing_ModelNumber_<UUID>
c. serialNumber = SmokeTestThing_SerialNumber_<UUID>
2. Validate enabling the Thing.
3. Validate restarting the Thing.
4. Validate writing the modelNumber property of Thing.
5. Validate writing the serialNumber property of Thing.
6. Validate adding temp and humidity property definitions to the Thing.
a. Each property is logged, persistent, remote, and its DataChangeType is ALWAYS.
7. Validate that the Thing exists by issuing a service call to the ThingWorx Platform.
Was this helpful?