Updated on 2022-02-24 GMT+08:00

Testing the SDK

The SDK packages provide JAR packages that can be run independently to test the related northbound APIs provided by the IoT platform. JAR packages that can run independently are stored in the testSDK directory.

Figure 1 JAR packages that can be run independently
  1. Modify the config.properties file and double-click runMe.bat to perform the test.

    Figure 2 Modifying config.properties

  2. If a commercial certificate is used, place it in the testSDK directory (the certificate name cannot be ca.jks or outgoing.CertwithKey.pkcs12) and configure the certificate name and password in the config.properties file. If the test certificate is used, you do not need to modify the certificate data in the config.properties file.
  3. The test result is displayed at the beginning. [y] indicates that the test is successful. [x] indicates an error. Check the error message or description in that line.
  4. The JDK is required to run JAR packages. Ensure that the JDK has been installed and the system environment variables have been set.

    The command output is as follows: