tito / telenium

Automation for Kivy Application
MIT License
67 stars 23 forks source link

Fixes for issues 19 to 21 #22

Closed pdallair closed 1 year ago

pdallair commented 2 years ago

With all the changes in place, I was able to run my simple test on a remote device several times in a row. Here's what 1 run looks like in the PyCharm console.

/home/pdallair/anaconda3/envs/telenium/bin/python /snap/pycharm-community/261/plugins/python-ce/helpers/pycharm/_jb_unittest_runner.py --path /home/pdallair/dev/PycharmProjects/Telenium/TestApp/test.py
Testing started at 10:24 p.m. ...
Launching unittests with arguments python -m unittest /home/pdallair/dev/PycharmProjects/Telenium/TestApp/test.py in /home/pdallair/dev/PycharmProjects/Telenium/TestApp

> app_quit: ()
Execute: ['adb', 'push', '/tmp/telenium_env.json', '/sdcard/telenium_env.json']
/tmp/telenium_env.json: 1 file pushed, 0 skipped. 0.5 MB/s (58 bytes in 0.000s)
Execute: ['adb', 'shell', 'am', 'start', '-n', 'org.kivy.testapp/org.kivy.android.PythonActivity', '-a', 'org.kivy.android.PythonActivity']
Starting: Intent { act=org.kivy.android.PythonActivity cmp=org.kivy.testapp/org.kivy.android.PythonActivity }
(None, None)
> ping: ()
> get_token: ()
> app_quit: ()

Ran 1 test in 6.946s

OK

Process finished with exit code 0
> select: ('//Label[@text~="Test App"]',)

main.py, test.py and buildozer.spec are the same as in tito/telenium#20.