def Get_Response(step_data):
sModuleInfo = inspect.stack()[0][3] + " : " + inspect.getmoduleinfo(__file__).name
CommonUtil.ExecLog(sModuleInfo, "Function: Get_Response", 1)
try:
fields_to_be_saved = ''
for row in step_data:
if row[1] == 'action':
fields_to_be_saved = row[2]
element_step_data = Get_Element_Step_Data(step_data)
returned_step_data_list = Validate_Step_Data(element_step_data)
if ((returned_step_data_list == []) or (returned_step_data_list == "failed")):
return "failed"
else:
try:
return_result = handle_rest_call(returned_step_data_list, fields_to_be_saved)
return return_result
except Exception:
return CommonUtil.Exception_Handler(sys.exc_info())
except Exception:
return CommonUtil.Exception_Handler(sys.exc_info())
BuiltInFunctions.py 文件源码
python
阅读 23
收藏 0
点赞 0
评论 0
评论列表
文章目录