Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
# Version 16

### [Current changes]

- **[Fix]** Fixed return for common screenshot action

- **[Change]** Change the deploy system. This change replaces the old deploy
system code with a new one that is compatible with the v3 engine on the server
side. This works by connecting with a persistent websocket connection that is
Expand Down Expand Up @@ -32,6 +35,7 @@
- **[Add]** Added swipe by uiautomator action for android
- **[Add]** Added uiautomatorviewer.bat inside App directory


### [15.0.4][May 11, 2022]
- **[Improve]** Added plus button support in keystroke action

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2263,10 +2263,12 @@ def TakeScreenShot(step_data):
CommonUtil.ExecLog(
sModuleInfo, 'screenshot saved as: "%s"' % full_location, 1
)
return "passed"
# print 'screenshot saved as: "%s"' % full_location
else:
# print "unable to take screenshot..."
CommonUtil.ExecLog(sModuleInfo, "unable to take screenshot...", 1)
CommonUtil.ExecLog(sModuleInfo, "unable to take screenshot...", 3)
return "zeuz_failed"

elif os.name == "nt":
# windows working copy
Expand All @@ -2280,12 +2282,18 @@ def TakeScreenShot(step_data):
basewidth = 1200
wpercent = basewidth / float(img.size[0])
hsize = int((float(img.size[1]) * float(wpercent)))
img = img.resize((basewidth, hsize), Image.ANTIALIAS)
img.save(path, "JPEG")
CommonUtil.ExecLog(sModuleInfo, 'screenshot saved as: "%s"' % path, 1)
if img:
img = img.resize((basewidth, hsize), Image.ANTIALIAS)
img.save(path, "JPEG")
CommonUtil.ExecLog(sModuleInfo, 'screenshot saved as: "%s"' % path, 1)
return "passed"
else:
CommonUtil.ExecLog(sModuleInfo,"unable to take screenshot...", 3)
return "zeuz_failed"

except Exception:
return CommonUtil.Exception_Handler(sys.exc_info())
CommonUtil.Exception_Handler(sys.exc_info())
return "zeuz_failed"


@logger
Expand Down