Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在ios上跑pocounit报这个warning,Fail to stop result emitter: "SiteSnapshot" #10

Open
xt3131 opened this issue Jan 24, 2019 · 0 comments

Comments

@xt3131
Copy link

xt3131 commented Jan 24, 2019

在ios上跑pocounit报下列warning,有什么办法屏蔽掉吗?

./usr/local/lib/python3.7/site-packages/pocounit/case.py:211: UserWarning: Fail to stop result emitter: "SiteSnapshot". You can report this error to the developers or just ignore it. Error message:
Labconfig.getIsLogJavis():False
"Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/pocounit/case.py", line 207, in run
emitter.stop()
File "/usr/local/lib/python3.7/site-packages/pocounit/result/site_snapshot.py", line 32, in stop
self.snapshot('caseEnd')
File "/usr/local/lib/python3.7/site-packages/pocounit/result/site_snapshot.py", line 38, in snapshot
self.snapshot_screen(site_id)
File "/usr/local/lib/python3.7/site-packages/pocounit/result/site_snapshot.py", line 60, in snapshot_screen
b64img, fmt = self.poco.snapshot()
File "/usr/local/lib/python3.7/site-packages/poco/pocofw.py", line 433, in snapshot
return self.agent.screen.getScreen(width)
File "/usr/local/lib/python3.7/site-packages/poco/utils/airtest/screen.py", line 21, in getScreen
return base64.b64encode(open(savepath, 'rb').read()), 'png'
TypeError: expected str, bytes or os.PathLike object, not NoneType
"
.format(emitter.class.name, traceback.format_exc()))

@xt3131 xt3131 changed the title 在ios上跑pocounit报这个warning 在ios上跑pocounit报这个warning,Fail to stop result emitter: "SiteSnapshot" Jan 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant