File tree Expand file tree Collapse file tree 4 files changed +9
-3
lines changed Expand file tree Collapse file tree 4 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -133,6 +133,12 @@ def set_log_message(
133133 html = True ,
134134 )
135135 raise AssertionError ("Images are not the same" )
136+ elif type_of_messages == "Fail" :
137+ logger .info (
138+ f"<details><summary>Actual image is different from baseline image (click to view images)\n \n </summary><img src={ path_to_image } ></img></details>" ,
139+ html = True ,
140+ )
141+ raise AssertionError ("Images are not the same" )
136142 elif work_object == "PDF" :
137143 pass
138144 elif work_object == "Tesseract" :
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ def _write_and_log(
101101 img_diff : Any = cv .hconcat ([base_image , target_image ])
102102 cv .imwrite (url , img_diff )
103103 self .set_log_message (
104- work_object = "Image" , type_of_messages = "Error " , path_to_image = url
104+ work_object = "Image" , type_of_messages = "Fail " , path_to_image = url
105105 )
106106 else :
107107 img_diff : Any = cv .hconcat ([base_image , target_image ])
Original file line number Diff line number Diff line change 11[tool .poetry ]
22name = " WatchUI"
3- version = " 2.0.12 "
3+ version = " 2.0.13 "
44description = " RobotFramework library package for automated visual testing."
55readme = " README.md"
66repository = " https://github.com/Tesena-smart-testing/WatchUI"
Original file line number Diff line number Diff line change 22
33# setup for development purposes
44# run with python setup.py develop
5- setup (name = "WatchUI" , version = "2.0.12 " , packages = find_packages ())
5+ setup (name = "WatchUI" , version = "2.0.13 " , packages = find_packages ())
You can’t perform that action at this time.
0 commit comments