/test/testfwk/arkxtest/jsunit/src/module/config/ |
H A D | DataDriver.js | 24 static get(object, name, defaultValue) { 58 if (ObjectUtils.has(specItem, IT_KEY) && ObjectUtils.get(specItem, IT_KEY) === specDesc) { 59 return ObjectUtils.get(specItem, PARAMS_KEY, specParams); 69 let suites = ObjectUtils.get(this.data, SUITES_KEY, []); 71 let describeValue = ObjectUtils.get(suiteItem, DESCRIBE_KEY, ''); 73 let specs = ObjectUtils.get(suiteItem, SPECS_KEY, []); 83 let suites = ObjectUtils.get(this.data, SUITES_KEY, []); 85 let describeValue = ObjectUtils.get(suiteItem, DESCRIBE_KEY, []); 87 suiteParams = Object.assign({}, suiteParams, ObjectUtils.get(suiteItem, PARAMS_KEY, suiteParams)); 99 if (ObjectUtils.has(specItem, IT_KEY) && ObjectUtils.get(specIte [all...] |
/test/testfwk/xdevice/plugins/ohos/src/ohos/environment/ |
H A D | device_lite.py | 91 tmp = int(kwargs.get("retry", RETRY_ATTEMPTS)) 155 (item.get("ip"), item.get("port")) 158 self.device_sn = "local_%s" % item.get("com") 164 def get(self, key=None, default=None): member in DeviceLite 171 return self.extend_value.get(key, default) 190 not item.get("com")): 196 if item.get("com").upper() in com_list: 207 not item.get("com")): 211 not item.get("typ [all...] |
H A D | device.py | 108 abort_on_exception = bool(kwargs.get("abort_on_exception", False)) 113 tmp = int(kwargs.get("retry", RETRY_ATTEMPTS)) 290 self.device_params_command.get(DeviceProperties.software_version)), 322 def get(self, key=None, default=None): member in Device 329 return self.extend_value.get(key, default) 353 self.label = self.model_dict.get(model, ProductForm.phone) 363 command = "param get %s" % prop_name 379 command = "param get %s" % prop_name 390 timeout = int(kwargs.get("timeout", TIMEOUT)) / 1000 391 error_print = bool(kwargs.get("error_prin [all...] |
/test/testfwk/xdevice/src/xdevice/_core/testkit/ |
H A D | json_parser.py | 84 self.config.description = json_content.get("description", "") 85 self.config.kits = json_content.get("kits", []) 86 self.config.environment = json_content.get("environment", []) 87 self.config.driver = json_content.get("driver", {}) 88 self.config.module_subsystem = json_content.get("subsystem", "") 89 self.config.module_part = json_content.get("part", "") 90 self.config.test_suite_name = json_content.get("testSuiteName", "") 91 self.config.test_case_list = json_content.get("testCaseList", []) 94 for kit in json_content.get("kits", []): 96 for device in json_content.get("environmen [all...] |
/test/xts/acts/ability/ability_runtime/capichildprocess/entry/src/main/cpp/ |
H A D | IpcProxy.cpp | 44 if (!WriteInterfaceToken(data.get())) { in RequestExitChildProcess() 52 int ret = OH_IPCRemoteProxy_SendRequest(ipcProxy_, IPC_ID_REQUEST_EXIT_PROCESS, data.get(), reply.get(), &ipcOpt); in RequestExitChildProcess() 73 if (!WriteInterfaceToken(data.get()) || in Add() 74 OH_IPCParcel_WriteInt32(data.get(), a) != OH_IPC_SUCCESS || in Add() 75 OH_IPCParcel_WriteInt32(data.get(), b) != OH_IPC_SUCCESS) { in Add() 83 int ret = OH_IPCRemoteProxy_SendRequest(ipcProxy_, IPC_ID_ADD, data.get(), reply.get(), &ipcOpt); in Add() 88 OH_IPCParcel_ReadInt32(reply.get(), &result); in Add() 105 if (!WriteInterfaceToken(data.get())) { in StartNativeChildProcess() [all...] |
/test/testfwk/xdevice/src/xdevice/_core/config/ |
H A D | config_manager.py | 93 device_type = device.get("type", "").strip() 114 sn, alias = dev.get("sn"), dev.get("alias") 121 ip = dev.get("ip") 153 enable = cfg.get(tag) 162 user_define = json.loads(self.pass_through).get("user_define") 166 device_log = user_define.get(tag) 180 value = cfg.get(key) 189 level = data.get(ConfigConst.tag_loglevel) 210 pass_through = data.get(ConfigCons [all...] |
/test/testfwk/xdevice/plugins/ohos/src/ohos/drivers/ |
H A D | oh_yara_driver.py | 116 if self.tool_hap_info.get(OHYaraConfig.CLEANUP_APPS.value): 117 cmd = ["uninstall", self.tool_hap_info.get(OHYaraConfig.BUNDLE_NAME.value)] 120 self.tool_hap_info.get(OHYaraConfig.BUNDLE_NAME.value), result)) 141 # get absolute file path 146 # get tool hap info 157 tool_hap_info.get(OHYaraConfig.HAP_FILE.value, "sststool.hap") 159 tool_hap_info.get(OHYaraConfig.BUNDLE_NAME.value, "com.example.sststool") 161 tool_hap_info.get(OHYaraConfig.CLEANUP_APPS.value, "true") 169 # get device info 171 "param get cons [all...] |
H A D | cpp_driver_lite.py | 118 if request.config.testargs.get("dry_run"): 119 self.config.dry_run = request.config.testargs.get( 140 if self.config.device.get("device_kernel") == \ 190 if self.config.device.get("device_kernel") == \ 263 if request.config.testargs.get("test"): 265 request.config.testargs.get("test")) 410 (remote_nfs.get("ip"), remote_nfs.get("port"), 417 client = paramiko.Transport((remote_nfs.get("ip"), 418 int(remote_nfs.get("por [all...] |
/test/testfwk/xdevice/src/xdevice/_core/report/ |
H A D | repeater_helper.py | 36 module_name = suite.attrib.get(ReportConstant.module_name, "") 40 name_in_suite = suite.attrib.get(ReportConstant.name, "") 42 total = int(suite.attrib.get(ReportConstant.tests, 0)) 68 value = int(test_suite.attrib.get(update_attribute, 0)) 69 value = int(root_tree.attrib.get(update_attribute, 0)) + value 77 name = testcase.attrib.get(ReportConstant.name, "") 78 class_name = testcase.attrib.get(ReportConstant.class_name, "") 86 modules[uuid].attrib.get(ReportConstant.tests, 0)) + 1 90 value = int(modules[uuid].attrib.get( 94 if testcase.attrib.get(ReportConstan [all...] |
H A D | result_reporter.py | 153 task_info = kwargs.get("task_info", "") 177 file = source.get("file") 296 if len(suites) == 1 and suites[0].get(ReportConstant.name) == module_name: 297 report = suites[0].get(ReportConstant.report) 300 module_time = suites[0].get(ReportConstant.time) 301 repeat = int(ele_module.get(ReportConstant.repeat, "1")) 304 repeat_round = int(ele_module.get(ReportConstant.round, "1")) 305 test_type = ele_module.get(ReportConstant.test_type, "-") 306 test_start = ele_module.get(ReportConstant.start_time, "-") 307 test_end = ele_module.get(ReportConstan [all...] |
H A D | reporter_helper.py | 208 update_time = round(float(suite.get( 210 case.get(ReportConstant.time, 0)), 3) 212 update_tests = str(int(suite.get(ReportConstant.tests, 0))+1) 215 update_failures = str(int(suite.get(ReportConstant.failures, 0))+1) 220 reverse = kwargs.get("reverse", False) 221 file_prefix = kwargs.get("file_prefix", None) 243 if data_suite.get("name", None) == \ 244 summary_suite.get("name", None): 247 if data_case.get("name", None) == \ 248 summary_case.get("nam [all...] |
/test/testfwk/developer_test/local_coverage/resident_service/ |
H A D | public_method.py | 39 ip_config = data_dic.get("ip", "") 40 sn = data_dic.get("sn", "") 41 port = data_dic.get("port", "") 99 if testsuite in services_component_dict.get("dinput"): 104 elif testsuite in services_component_dict.get("softbus_server"): 112 server_name: component_gcda_dict.get(server_name) 128 server_name: component_gcda_dict.get(server_name) 132 server_list = system_info_dict.get(system_name) if system_info_dict.get(system_name) else [] 138 server_name: services_component_dict.get(server_nam [all...] |
/test/xts/acts/distributeddatamgr/preferencesjstest/hap/entry/src/ohosTest/js/test/ |
H A D | PreferencesCallBackJsunit.test.js | 66 let pre = await mPreferences.get(KEY_TEST_STRING_ELEMENT, "defaultvalue")
153 * @tc.name get defaultValue callback interface test
155 * @tc.desc get defaultValue callback interface test
162 await mPreferences.get(KEY_TEST_STRING_ELEMENT, "defaultValue", function (err, ret) {
169 * @tc.name get float callback interface test
171 * @tc.desc get float callback interface test
179 await mPreferences.get(KEY_TEST_FLOAT_ELEMENT, 0.0, function (err, ret) {
186 * @tc.name get int callback interface test
188 * @tc.desc get int callback interface test
196 await mPreferences.get(KEY_TEST_INT_ELEMEN [all...] |
/test/testfwk/xdevice/plugins/devicetest/core/ |
H A D | report.py | 54 test_name = test_runner.configs.get("test_name") 104 result = result_info.get('result') 109 case_name = result_info.get('case_name') 110 case_start_time = result_info.get('start_time').timestamp() 111 case_end_time = result_info.get('end_time').timestamp() 112 error = result_info.get('error') 113 report = result_info.get("report", "") 126 result_content = result_info.get('result_content') 154 result = result_info.get('result') 159 case_info = result_info.get('case_nam [all...] |
/test/testfwk/developer_test/src/core/testcase/ |
H A D | testcase_manager.py | 111 kits_list = data_dic.get("kits")
133 driver_dict = data_dic.get("driver")
135 driver_type = driver_dict.get("type")
204 suit_file_dic[key] = value + temp_dic.get(key)
260 suite_file_dictionary.get("DEX").append(suite_file)
279 suite_file_dictionary.get("OHJST").append(suite_file)
281 suite_file_dictionary.get("JST").append(suite_file)
285 suite_file_dictionary.get("PYT").append(suite_file)
290 suite_file_dictionary.get("OHRust").append(suite_file)
292 suite_file_dictionary.get("CX [all...] |
/test/testfwk/xdevice/src/xdevice/_core/context/ |
H A D | upload.py | 75 if child.get(ReportConstant.message, ""): 77 error_msg, "%s;" % child.get(ReportConstant.message)) 161 start_time = testsuite_element.get(ReportConstant.start_time, "") 162 end_time = testsuite_element.get(ReportConstant.end_time, "") 170 timestamp = str(testsuite_element.get( 172 cost_time = testsuite_element.get(ReportConstant.time, "") 196 failures = int(task_element.get(ReportConstant.failures, 0)) 197 errors = int(task_element.get(ReportConstant.errors, 0)) 198 disabled = int(task_element.get(ReportConstant.disabled, 0)) 199 unavailable = int(task_element.get(ReportConstan [all...] |
/test/testfwk/xdevice/plugins/ohos/src/ohos/testkit/ |
H A D | kit_lite.py | 79 cmd_com = device.device.com_dict.get(ComType.cmd_com) 101 deploy_serial_port = device.device.com_dict.get( 104 get(ComType.deploy_com).baud_rate 185 linux_host = remote_info.get("ip", "") 186 linux_directory = remote_info.get("dir", "") 187 is_remote = remote_info.get("remote", "false") 221 target = mount_file.get("target", "/test_root") 261 request = kwargs.get("request", None) 268 config_file=request.get(ConfigConst.configfile, ""), 269 env=request.get(ConfigCons [all...] |
/test/testfwk/xdevice/src/xdevice/_core/ |
H A D | plugin.py | 51 return self.__dict__.get(item) 59 def get(self, key, default=""): member in Config 60 return self.__dict__.get(key, default) 99 self.plugin_type = _param_dict.get("type") 100 self.plugin_id = _param_dict.get("id") 128 interfaces = self._builtin_plugin.get(self.plugin_type, []) 161 if not _PLUGINS.get(key): 164 plugins.insert(0, _PLUGINS.get(key)[0]) 166 plugins.append(_PLUGINS.get(key)[0]) 170 return _PLUGINS.get((plugin_typ [all...] |
/test/testfwk/arkxtest/uitest/test/ |
H A D | frontend_api_handler_test.cpp | 64 ASSERT_EQ("wyz", container.at(INDEX_ZERO).get<string>()); in TEST_F() 65 ASSERT_EQ(1, container.at(INDEX_ONE).get<uint8_t>()); in TEST_F() 66 ASSERT_NEAR(0.1, container.at(INDEX_TWO).get<float>(), 1E-6); in TEST_F() 67 ASSERT_EQ(true, container.at(INDEX_THREE).get<bool>()); in TEST_F() 114 out.resultValue_ = in.paramList_.at(0).get<string>().length() + in.paramList_.at(1).get<uint8_t>(); in TEST_F() 124 ASSERT_EQ(string("wyz").length() + 10, reply.resultValue_.get<uint8_t>()); in TEST_F() 132 out.resultValue_ = in.paramList_.at(100).get<uint8_t>(); in TEST_F() 167 if (in.paramList_.at(0).get<string>() == "oops") { in TEST_F() 217 const auto ref0 = reply0.resultValue_.get<strin in TEST_F() [all...] |
H A D | widget_selector_test.cpp | 174 selector.Select(w1, *iterator.get(), visits, targets); in TEST_F() 186 selector.Select(w1, *iterator.get(), visits, targets); in TEST_F() 203 selector.Select(w1, *iterator.get(), visits, targets); in TEST_F() 218 selector.Select(w1, *iterator.get(), visits, targets); in TEST_F() 241 selector.Select(w1, *iterator.get(), visits, targets); in TEST_F() 260 selector.Select(w1, *iterator.get(), visits, targets); in TEST_F() 282 selector.Select(w1, *iterator.get(), visits, targets); in TEST_F() 309 selector.Select(w1, *iterator.get(), visits, targets); in TEST_F() 333 selector.Select(w1, *iterator.get(), visits, targets); in TEST_F() 359 selector.Select(w1, *iterator.get(), visit in TEST_F() [all...] |
/test/xts/acts/multimedia/avsession/avsession_ndk_standard/avsession_ndk_stage/entry/src/main/cpp/ |
H A D | AvsessionTest.cpp | 101 const std::string& assetId = std::get<std::string>(param); in AVMetadataBuilderSetAssetId() 110 const std::string& title = std::get<std::string>(param); in AVMetadataBuilderSetTitle() 119 const std::string& artist = std::get<std::string>(param); in AVMetadataBuilderSetArtist() 128 const std::string& author = std::get<std::string>(param); in AVMetadataBuilderSetAuthor() 137 const std::string& album = std::get<std::string>(param); in AVMetadataBuilderSetAlbum() 146 const std::string& writer = std::get<std::string>(param); in AVMetadataBuilderSetWriter() 155 const std::string& composer = std::get<std::string>(param); in AVMetadataBuilderSetComposer() 164 const std::string& mediaImageUri = std::get<std::string>(param); in AVMetadataBuilderSetMediaImageUri() 173 const std::string& subtitle = std::get<std::string>(param); in AVMetadataBuilderSetSubtitle() 182 const std::string& description = std::get<st in AVMetadataBuilderSetDescription() [all...] |
/test/testfwk/developer_test/src/core/build/ |
H A D | select_targets.py | 58 part_info = part_infos.get(part_name, None) 62 origin_part_name = part_info.get("origin_part_name") 63 build_out_dir = part_info.get("build_out_dir") 145 test_type = data.get("test_type") 148 target_path = data.get("label") 163 part_path_list = part_path_dic.get(item) 175 part_path_list = part_path_dic.get(partname, []) 187 part_path_list = part_path_dic.get(partname, [])
|
/test/xts/acts/multimedia/image_effect/OHImageEffectNDK/entry/src/main/cpp/utils/ |
H A D | pixelmap_helper.cpp | 42 Image_ErrorCode errorCode = OH_ImageSourceNative_CreateFromFd(*fdPtr.get(), &imageSource); in Decode() 50 errorCode = OH_ImageSourceNative_CreatePixelmap(imageSourcePtr.get(), optionsPtr.get(), &pixelmap); in Decode() 68 OH_PackingOptions_SetQuality(optionsPtr.get(), IMAGE_EFFECT_HELPER_100); in CreatePackingOptions() 70 OH_PackingOptions_SetMimeType(optionsPtr.get(), &format); in CreatePackingOptions() 85 errorCode = OH_ImagePackerNative_PackToFileFromPixelmap(imagePackerPtr.get(), optionsPtr.get(), pixelmap, fd); in Encode()
|
/test/testfwk/xdevice/src/xdevice/_core/executor/ |
H A D | scheduler.py | 100 repeat = Variables.config.taskargs.get(ConfigConst.repeat) 102 repeat = args.get(ConfigConst.repeat, 1) 109 action = args.get("action", "") 127 # get test driver and device 226 device_spt = product_info.get("Security Patch", None) 307 # get environment 378 history_execute_result = report_data_dict.get(module_name, "") 573 task_list.update({module_subsystem: task_list.get(module_subsystem) + 1}) 582 if kit.get("type") == "AppInstallKit": 584 if kit.get("typ [all...] |
/test/xts/hats/hdf/camera/cameraMg/v1_3/src/ |
H A D | camera_tag_test_v1_3.cpp | 97 common_metadata_header_t* data = cameraTest->ability->get();
in HWTEST_F() 123 common_metadata_header_t* data = cameraTest->ability->get();
in HWTEST_F() 159 common_metadata_header_t* data = cameraTest->ability->get();
in HWTEST_F() 188 common_metadata_header_t* data = cameraTest->ability->get();
in HWTEST_F() 217 common_metadata_header_t* data = cameraTest->ability->get();
in HWTEST_F() 246 common_metadata_header_t* data = cameraTest->ability->get();
in HWTEST_F() 275 common_metadata_header_t* data = cameraTest->ability->get();
in HWTEST_F() 304 common_metadata_header_t* data = cameraTest->ability->get();
in HWTEST_F() 333 common_metadata_header_t* data = cameraTest->ability->get();
in HWTEST_F() 361 common_metadata_header_t* data = cameraTest->ability->get();
in HWTEST_F() [all...] |