Skip to content

Commit 975e3d2

Browse files
authored
Merge pull request #387 from AutomationSolutionz/desktop_automation_fixed
fixed desktop actions access attached files and print image match score
2 parents d6365b9 + 6905133 commit 975e3d2

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Framework/Built_In_Automation/Built_In_Utility/CrossPlatform/BuiltInUtilityFunction.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2419,6 +2419,7 @@ def compare_images(data_set):
24192419
# Perform the image comparison based on the structural similarity index
24202420

24212421
Shared_Resources.Set_Shared_Variables(score, ssim_match)
2422+
print('Score:',ssim_match)
24222423
if ssim_match >= req_ssim:
24232424
CommonUtil.ExecLog(sModuleInfo, "Images match", 1)
24242425
return "passed"

Framework/Built_In_Automation/Shared_Resources/LocateElement.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,8 +1134,8 @@ def _pyautogui(step_data_set):
11341134

11351135
# Recall file attachment, if not already set
11361136
file_attachment = []
1137-
if sr.Test_Shared_Variables("file_attachment"):
1138-
file_attachment = sr.Get_Shared_Variables("file_attachment")
1137+
if sr.attachment_variables:
1138+
file_attachment = sr.attachment_variables
11391139

11401140
# Parse data set
11411141
try:
@@ -1171,6 +1171,8 @@ def _pyautogui(step_data_set):
11711171
# Check that we have some value
11721172
if file_name == "":
11731173
return "zeuz_failed"
1174+
1175+
11741176

11751177
# Try to find the image file
11761178
if file_name not in file_attachment and not os.path.exists(file_name):

0 commit comments

Comments
 (0)