This topic describes only module-specific error codes. For details about universal error codes, see Universal Error Codes.
Error Message
Initialization failed.
Description
The framework fails to be initialized.
Possible Causes
The bundle name of the application cannot be obtained.
Solution
Check whether the test application is properly installed and available, and ensure that the bundle name of the test application can be obtained.
Error Message
Internal error.
Description
An internal error occurs in the framework.
Possible Causes
Solution
Error Message
Parameter verification failed.
Description
Parameter verification failed.
Possible Causes
The parameter type is incorrect, or the parameter value is out of the specified range.
Solution
Check whether the type and value range of the input parameter meet the API requirements.
Error Message
Failed to execute the callback.
Description
The callback fails to be executed.
Possible Causes
Solution
Check the internal logic of the callback, including the exception handling and timeout control mechanisms, to ensure that no exception is thrown and that the callback execution does not time out.
Error Message
Failed to collect metric data.
Description
Failed to collect performance data.
Possible Causes
The application process does not exist during performance data collection.
Solution
Run the ps command to check whether the application process exists during performance data collection. Ensure that the application process exists.
Error Message
Failed to obtain the measurement result.
Description
Failed to obtain the test data of the specified performance metric.
Possible Causes
The data collection is not complete.
Solution
Ensure that the PerfTest.run API has been executed and no exception is thrown. Ensure that the data collection is complete before obtaining the specified data.
Error Message
The API does not support concurrent calls.
Description
The API does not support concurrent calls.
Possible Causes
The async API does not use await to wait until the asynchronous execution is complete. As a result, the API is called concurrently.
Solution
Use await to wait until the asynchronous function execution is complete.