Skip to content

Conversation

@ki4070ma
Copy link
Collaborator

@ki4070ma ki4070ma commented May 3, 2019

Verified with

  • Emulator(Android 9.0)
  • Python 2.7.10/3.7.1

Remaining (will be by the next pr)

  • test_screen_record
  • test_send_keys
  • test_start_activity_other_app
  • test_update_settings

@ki4070ma ki4070ma changed the title Fix func test failed Fix functional tests failed May 3, 2019
data_ret = base64.b64decode(self.driver.pull_file(path))

# python2
# self.driver.push_file(path, data.encode('base64'))
Copy link
Member

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

Copy link
Collaborator Author

@ki4070ma ki4070ma May 4, 2019

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

Copy link
Collaborator Author

@ki4070ma ki4070ma May 4, 2019

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

这些测试用例目前全不全呢,有没有比较全的安卓自动化测试用例呢。

@ki4070ma
Copy link
Collaborator Author

ki4070ma commented May 7, 2019

@becomemoreandmorepowerful
If my understanding is wrong, please correct me.

  • I'll fix other test cases in another pr.
  • These test cases are to check if provided apis work with appium server, not comprehensive Android automation test cases.

@ki4070ma ki4070ma merged commit 868caa9 into appium:master May 7, 2019
@ki4070ma ki4070ma deleted the fix-test-failed branch May 7, 2019 10:07
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

Successfully merging this pull request may close these issues.

3 participants