From 8ce760647fae32b4e4aa40a8f8e2c908da31970e Mon Sep 17 00:00:00 2001 From: sazid Date: Mon, 24 Feb 2025 14:21:07 +0600 Subject: [PATCH] Allow `http_resposne` as a possible alternative to `none` in `http_response` action to avoid confusion --- Framework/Built_In_Automation/Web/REST/BuiltInFunctions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Framework/Built_In_Automation/Web/REST/BuiltInFunctions.py b/Framework/Built_In_Automation/Web/REST/BuiltInFunctions.py index 3d9f6482..ff564f0a 100755 --- a/Framework/Built_In_Automation/Web/REST/BuiltInFunctions.py +++ b/Framework/Built_In_Automation/Web/REST/BuiltInFunctions.py @@ -262,7 +262,7 @@ def save_fields_from_rest_call(result_dict, fields_to_be_saved): field = each.strip() Shared_Resources.Set_Shared_Variables(field, result_dict[field]) CommonUtil.ExecLog(sModuleInfo, "All response fields are saved", 1) - elif fields_to_be_saved[0].lower().strip() == "none": + elif fields_to_be_saved[0].lower().strip() in ("none", "http_response"): CommonUtil.ExecLog(sModuleInfo, "No response fields are saved", 1) return else: @@ -325,7 +325,7 @@ def insert_fields_from_rest_call_into_list(result_dict, fields_to_be_saved, list list_name, field, result_dict[field] ) CommonUtil.ExecLog(sModuleInfo, "All response fields are saved", 1) - elif fields_to_be_saved[0].lower().strip() == "none": + elif fields_to_be_saved[0].lower().strip() in ("none", "http_response"): CommonUtil.ExecLog(sModuleInfo, "No response fields are saved", 1) return else: