-
Notifications
You must be signed in to change notification settings - Fork 573
Fix functional tests failed #364
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
Conversation
| data_ret = base64.b64decode(self.driver.pull_file(path)) | ||
|
|
||
| # python2 | ||
| # self.driver.push_file(path, data.encode('base64')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should Python 2 separates here?
base64.b64encode(b'This is the contents of the file to push to the device.').decode('utf-8')
=> u'VGhpcyBpcyB0aGUgY29udGVudHMgb2YgdGhlIGZpbGUgdG8gcHVzaCB0byB0aGUgZGV2aWNlLg=='
in Python 2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now enabled running by both python2 and python3
$python2 appium_tests.py
--
$python3 appium_tests.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I misunderstood, I'll check the result also in py2 by its codes.
==
Thanks it works.
|
这些测试用例目前全不全呢,有没有比较全的安卓自动化测试用例呢。 |
|
@becomemoreandmorepowerful
|
Verified with
Remaining (will be by the next pr)