/test/testfwk/xdevice/plugins/devicetest/ |
H A D | error.py | 19 from xdevice import Error, ErrorCategory namespace 24 Code_0201001 = Error(**{"error": "File path does not exist, path: {}", 27 Code_0201002 = Error(**{"error": "Json file does not exist, file: {}", 30 Code_0201003 = Error(**{"error": "generate test report failed", 32 Code_0201004 = Error(**{"error": "The test task is terminated abnormally", 35 Code_0201005 = Error(**{"error": "Failed to obtain the idle port", 38 Code_0201006 = Error(**{"error": "The source image for image comparison does not exist, source: {}", 41 Code_0201007 = Error(**{"error": "The target image for image comparison does not exist, target: {}", 44 Code_0201008 = Error(**{"error": "Resource file does not exist, file: {}", 48 Code_0201009 = Error(**{"erro [all...] |
/test/testfwk/xdevice/plugins/ohos/src/ohos/ |
H A D | error.py | 19 from xdevice import Error, ErrorCategory namespace 24 Code_0301001 = Error(**{"error": "Test source '{}' does not exist", 27 Code_0301002 = Error(**{"error": "Test case '{}' does not exist", 30 Code_0301003 = Error(**{"error": "Not find ace test app file", 33 Code_0301004 = Error(**{"error": "Can't not find HarmonySdk, please check", 36 Code_0301005 = Error(**{"error": "Execute file does not exist", 39 Code_0301006 = Error(**{"error": "litehdc.exe not found", 42 Code_0301007 = Error(**{"error": "Can not find acetools, please check", 46 Code_0301008 = Error(**{"error": "Please check jar file params", 49 Code_0301009 = Error(**{"erro [all...] |
/test/testfwk/xdevice/src/xdevice/_core/ |
H A D | error.py | 22 __all__ = ["Error", "ErrorCategory", "ErrorMessage"] 31 class Error(namedtuple("Error", ["code", "error", "category", "suggestions"], 64 Code_0101001 = Error(**{"error": "Unsupported system environment", 66 Code_0101002 = Error(**{"error": "File path does not exist, path: {}", 69 Code_0101003 = Error(**{"error": "Test kit {} does not exist", 72 Code_0101004 = Error(**{"error": "Test kit {} has no attribute of device_name", 74 Code_0101005 = Error(**{"error": "History report path does not exist, path: {}", 76 Code_0101006 = Error(**{"error": "The combined parameters which key '{}' has no value", 80 Code_0101007 = Error(**{"erro 32 defaults=[ErrorCategory.Framework, ""])): global() class [all...] |
/test/xts/acts/multimedia/image/image_js_standard/imagePackingNDK/entry/src/main/cpp/napi/ |
H A D | image_packer_test.cpp | 119 HiviewDFX::HiLog::Error(LABEL, "failed to format");
in setImageFormat() 146 HiviewDFX::HiLog::Error(LABEL, "failed to get loop");
in setLoop() 158 HiviewDFX::HiLog::Error(LABEL, "failed to napi_get_named_property");
in setDelayTimes() 164 HiviewDFX::HiLog::Error(LABEL, "JsPackToFileMultiFrames failed to napi_is_array");
in setDelayTimes() 168 HiviewDFX::HiLog::Error(LABEL, "is not DelayTimesArray");
in setDelayTimes() 172 HiviewDFX::HiLog::Error(LABEL, "Parse delayTime pack napi_get_array_length failed");
in setDelayTimes() 179 HiviewDFX::HiLog::Error(LABEL, "get delayTimesArray space failed.");
in setDelayTimes() 186 HiviewDFX::HiLog::Error(LABEL, "napi_get_element failed %{public}zu", i);
in setDelayTimes() 191 HiviewDFX::HiLog::Error(LABEL, "Parse delayTime in item1 failed %{public}zu", i);
in setDelayTimes() 206 HiviewDFX::HiLog::Error(LABE in setDisposalTypes() [all...] |
/test/testfwk/arkxtest/jsunit/src/module/mock/ |
H A D | MockKit.js | 62 throw Error('Please enter an object to be cleaned'); 65 throw new Error('Not a object or static class'); 76 throw new Error('Not a object or static class'); 79 throw new Error('Not a function'); 211 throw new Error('Not a function'); 227 throw Error('not a function name'); 235 throw Error(`this ${object} cannot be mocked`); 252 throw Error('not a function'); 255 throw Error('not a mock function'); 262 throw Error('no [all...] |
/test/testfwk/arkxtest/hamock/src/main/mock/ |
H A D | MockKit.js | 51 throw Error('Please enter an object to be cleaned'); 54 throw new Error('Not a object or static class'); 64 throw new Error('Not a object or static class'); 67 throw new Error('Not a function'); 186 throw new Error('Not a function'); 201 throw Error('not a function name'); 208 throw Error(`this ${object} cannot be mocked`); 224 throw Error('not a function'); 227 throw Error('not a mock function'); 233 throw Error('no [all...] |
/test/testfwk/arkxtest/testserver/src/client/ |
H A D | test_server_client.cpp | 55 HiLog::Error(LABEL, "%{public}s. Locator SystemAbility [%{public}d] time out.", in WaitLoadStateChange() 102 HiLog::Error(LABEL, "%{public}s. Get SystemAbility Manager failed!", __func__); in LoadTestServer() 114 HiLog::Error(LABEL, "%{public}s. LoadSystemAbility [%{public}d] FAILED, ret %{public}d", in LoadTestServer() 124 HiLog::Error(LABEL, "%{public}s. Get SystemAbility [%{public}d] remoteObject FAILED", in LoadTestServer() 130 HiLog::Error(LABEL, "%{public}s. Get SystemAbility [%{public}d] proxy FAILED", __func__, systemAbilityId); in LoadTestServer() 135 HiLog::Error(LABEL, "%{public}s. Create session FAILED", __func__); in LoadTestServer() 146 HiLog::Error(LABEL, "%{public}s. Get iTestServerInterface FAILED", __func__); in SetPasteData() 157 HiLog::Error(LABEL, "%{public}s. Get iTestServerInterface FAILED", __func__); in PublishCommonEvent()
|
/test/xts/acts/multimedia/image/image_js_standard/imagePixelMapNDK/entry/src/main/cpp/napi/ |
H A D | pixel_map_native_test.cpp | 87 HiviewDFX::HiLog::Error(LABEL, "getNativeImageSource failed"); in JsNativeToNapi() 99 HiviewDFX::HiLog::Error(LABEL, "GetPixelmap failed"); in JsNativeToNapi() 105 HiviewDFX::HiLog::Error(LABEL, "OH_PixelmapNative_ConvertPixelmapToNapi failed"); in JsNativeToNapi() 120 HiviewDFX::HiLog::Error(LABEL, "getNativeImageSource failed"); in JsNapiToNative_ReturnProperty() 127 HiviewDFX::HiLog::Error(LABEL, "ConvertPixelmapFromNapi failed"); in JsNapiToNative_ReturnProperty() 136 HiviewDFX::HiLog::Error(LABEL, "GetPixelmapPixelWidth failed"); in JsNapiToNative_ReturnProperty() 144 HiviewDFX::HiLog::Error(LABEL, "GetPixelmapPixelHeight failed"); in JsNapiToNative_ReturnProperty() 152 HiviewDFX::HiLog::Error(LABEL, "GetPixelmapPixelFormat failed"); in JsNapiToNative_ReturnProperty()
|
/test/testfwk/arkxtest/testserver/src/service/ |
H A D | test_server_service.cpp | 47 HiLog::Error(LABEL_SERVICE, "%{public}s. callerDetectTimer_ is nullptr.", __func__); in ~TestServerService() 57 HiLog::Error(LABEL_SERVICE, "%{public}s. System mode is unsatisfied.", __func__); in OnStart() 62 HiLog::Error(LABEL_SERVICE, "%{public}s. Publish failed", __func__); in OnStart() 104 HiLog::Error(LABEL_SERVICE, "%{public}s. AddDeathRecipient FAILD.", __func__); in CreateSession() 170 HiLog::Error(LABEL_SERVICE, "%{public}s. Get SystemAbility Manager failed!", __func__); in RemoveTestServer() 181 HiLog::Error(LABEL_SERVICE, "%{public}s. IRemoteObject is NULL.", __func__); in OnRemoteDied()
|
/test/testfwk/developer_test/aw/cxx/distributed/ |
H A D | distributed_cfg.cpp | 102 HiLog::Error(DistributedCfg::LABEL,
in GetDeviceIp() 109 HiLog::Error(DistributedCfg::LABEL,
in GetDeviceIp() 116 HiLog::Error(DistributedCfg::LABEL,
in GetDeviceIp() 128 HiLog::Error(DistributedCfg::LABEL,
in GetDeviceUuid() 135 HiLog::Error(DistributedCfg::LABEL,
in GetDeviceUuid() 143 HiLog::Error(DistributedCfg::LABEL,
in GetDeviceUuid()
|
H A D | distributed_agent.cpp | 103 HiLog::Error(DistributedAgent::LABEL, "agent bind error.\n");
in InitAgentServer() 110 HiLog::Error(DistributedAgent::LABEL, "agent listen error.\n");
in InitAgentServer() 146 HiLog::Error(DistributedAgent::LABEL, "test case runner can not work because I can not accept it.");
in DoCmdServer() 280 HiLog::Error(DistributedAgent::LABEL, "error command.\n");
in OnNotifyImf() 348 HiLog::Error(DistributedAgent::LABEL, "error command.\n");
in OnProcessCmd() 387 HiLog::Error(DistributedAgent::LABEL, "agent can not get port.\n");
in Start() 406 HiLog::Error(DistributedAgent::LABEL, "onNotify: %s.\n", msg.c_str());
in OnNotify() 409 HiLog::Error(DistributedAgent::LABEL, "msgLen < 0.");
in OnNotify()
|
H A D | distributed_major.cpp | 137 HiLog::Error(DistributeTestEnvironment::LABEL, "connect to agent %s fail.", serverIp.c_str());
in ConnectAgent() 191 HiLog::Error(DistributeTestEnvironment::LABEL, "agent socket is closed.");
in SendToAgent() 221 HiLog::Error(DistributeTestEnvironment::LABEL, "get error message. type is :%d",
in SendToAgent() 227 HiLog::Error(DistributeTestEnvironment::LABEL, "device socket close.");
in SendToAgent() 286 HiLog::Error(DistributeTestEnvironment::LABEL, "command data is too long \n");
in RunTestCmd()
|
/test/xts/acts/multimedia/image/image_js_standard/imageSourceNDK/entry/src/main/cpp/napi/ |
H A D | image_source_native_test.cpp | 79 HiviewDFX::HiLog::Error(LABEL, "JsGetImageProperty failed to parse params"); in JsGetImageProperty() 91 HiviewDFX::HiLog::Error(LABEL, "JsGetImageProperty failed"); in JsGetImageProperty() 94 HiviewDFX::HiLog::Error(LABEL, "value = %{public}s", value.c_str()); in JsGetImageProperty() 108 HiviewDFX::HiLog::Error(LABEL, "JsModifyImageProperty failed to parse params"); in JsModifyImageProperty() 122 HiviewDFX::HiLog::Error(LABEL, "JsModifyImageProperty failed"); in JsModifyImageProperty() 125 HiviewDFX::HiLog::Error(LABEL, "value = %{public}s", value.c_str()); in JsModifyImageProperty()
|
/test/xts/acts/multimedia/image/image_js_standard/imageReceiverNDK/entry/src/main/cpp/napi/ |
H A D | image_receiver_test.cpp | 165 HiviewDFX::HiLog::Error(LABEL, "context is empty"); in Callback() 184 HiviewDFX::HiLog::Error(LABEL, "napi_get_reference_value callback is empty"); in Callback() 188 HiviewDFX::HiLog::Error(LABEL, "env or callbackRef is empty"); in Callback() 203 HiviewDFX::HiLog::Error(LABEL, "napi_get_uv_event_loop failed"); in JSImageBufferAvaliableHandler() 214 HiviewDFX::HiLog::Error(LABEL, "DoCallBack: No memory"); in OnBufferAvaliable() 226 HiviewDFX::HiLog::Error(LABEL, "Failed to execute DoCallBack work queue"); in OnBufferAvaliable() 290 HiviewDFX::HiLog::Error(LABEL, "JsCreateImageReceiverOptions failed to create options"); in JsCreateImageReceiverOptions() 300 HiviewDFX::HiLog::Error(LABEL, "JsCreateImageReceiverOptions failed to parse params"); in JsCreateImageReceiverOptions() 307 HiviewDFX::HiLog::Error(LABEL, "JsCreateImageReceiverOptions check params failed"); in JsCreateImageReceiverOptions() 311 HiviewDFX::HiLog::Error(LABE in JsCreateImageReceiverOptions() [all...] |
/test/xts/acts/arkui/ace_ets_web_dev_webviewControllerError/entry/src/ohosTest/resources/rawfile/ |
H A D | index.js | 41 } else if (result instanceof Error) { 44 document.getElementById("msg2").innerHTML = "Error:" + result.name + ", msg:" + result.message; 61 console.error(`hwd In html Error receiving message: ${event}`); 125 // 使用h5Port往ets侧发送Error类型的消息. 128 console.log("In html send Error message"); 129 let err = new Error('An error occurred!', { cause: '4321' }) 131 console.log("In html send Error message end");
|
/test/testfwk/arkxtest/jsunit/src/module/assert/ |
H A D | assertThrowError.js | 21 throw new Error('actualValue is not a function'); 32 if (err instanceof Error) {
|
/test/xts/acts/arkui/ace_ets_web_enhanced/ace_ets_web_enhanced_four/entry/src/ohosTest/resources/rawfile/ |
H A D | index.js | 40 } else if (result instanceof Error) {
43 document.getElementById('msg2').innerHTML = 'Error:' + result.name + ', msg:' + result.message;
60 console.error(`hwd In html Error receiving message: ${event}`);
|
/test/testfwk/developer_test/examples/distributedb/test/distributedtest/common/ |
H A D | distribute_demo_agent.cpp | 118 HiLog::Error(LABEL, "Init environment failed."); in main() 124 HiLog::Error(LABEL, "Clear environment failed."); in main()
|
/test/testfwk/xdevice/ |
H A D | run.bat | 58 @echo "Error occurs to install %%a!" 64 @echo "Error occurs to install %%a!"
|
/test/xts/acts/arkui/ace_ets_web_enhanced/ace_ets_web_enhanced_one/entry/src/ohosTest/resources/rawfile/ |
H A D | onMessageEventExt.js | 39 } else if (result instanceof Error) { 42 document.getElementById("msg2").innerHTML = "Error:" + result.name + ", msg:" + result.message; 59 console.error(`hwd In html Error receiving message: ${event}`);
|
/test/xts/acts/arkui/ace_ets_web_enhanced/ace_ets_web_enhanced_three/entry/src/ohosTest/resources/rawfile/ |
H A D | onMessageEventExt.js | 39 } else if (result instanceof Error) { 42 document.getElementById("msg2").innerHTML = "Error:" + result.name + ", msg:" + result.message; 59 console.error(`hwd In html Error receiving message: ${event}`);
|
/test/xts/acts/arkui/ace_ets_web_error_code/entry/src/ohosTest/resources/rawfile/ |
H A D | onMessageEventExt.js | 40 } else if (result instanceof Error) { 43 document.getElementById("msg2").innerHTML = "Error:" + result.name + ", msg:" + result.message; 60 console.error(`hwd In html Error receiving message: ${event}`);
|
/test/xts/acts/arkui/ace_ets_web_enhanced/ace_ets_web_enhanced_two/entry/src/ohosTest/resources/rawfile/ |
H A D | onMessageEventExt.js | 39 } else if (result instanceof Error) { 42 document.getElementById("msg2").innerHTML = "Error:" + result.name + ", msg:" + result.message; 59 console.error(`hwd In html Error receiving message: ${event}`);
|
/test/xts/acts/arkui/ace_ets_web_dev_three/entry/src/ohosTest/resources/rawfile/ |
H A D | index.js | 40 } else if (result instanceof Error) { 43 document.getElementById("msg2").innerHTML = "Error:" + result.name + ", msg:" + result.message; 60 console.error(`hwd In html Error receiving message: ${event}`);
|
/test/testfwk/arkxtest/jsunit/src/module/report/ |
H A D | OhReport.js | 53 message += ', Error: ' + summary.error; 176 `message: ${this.specService.currentRunningSpec.expectMsg}, Error in ${this.specService.currentRunningSpec.description}, ${this.specService.currentRunningSpec.error?.message}` : 177 `Error in ${this.specService.currentRunningSpec.description}, ${this.specService.currentRunningSpec.error?.message}`; 185 `message: ${this.specService.currentRunningSpec.expectMsg}, Error in ${this.specService.currentRunningSpec.description}, ${this.specService.currentRunningSpec.fail?.message}` : 186 `Error in ${this.specService.currentRunningSpec.description}, ${this.specService.currentRunningSpec.fail?.message}`;
|