Skip to content

Commit

Permalink
Allow http_resposne as a possible alternative to none in `http_re…
Browse files Browse the repository at this point in the history
…sponse` action to avoid confusion
  • Loading branch information
sazid committed Feb 24, 2025
1 parent 6d56b53 commit 8ce7606
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Framework/Built_In_Automation/Web/REST/BuiltInFunctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 8ce7606

Please sign in to comment.