- install Appium
- install Geymotion or ohter Android emulator.
- open Geymotion and create a virtual device.'
- Install Requirements
pip install -r requirements.txt
- Open appium software and start the service.
- Install the app under APK folder into the phone。
adb install ./APK/OmniNotes-playDebug-6.1.0Alpha1.apk
- get your device address
- Start Runing
python main.py 192.168.242.101:5555 cuda feio 8.0.0
- You can change "192.168.242.101:5555" to your device address.
- "cuda" means to use "GPU".It can be repaced by "cpu".
- "feio" is the app name,it can be repaced by the following word:AnyMemo;xinwen;kaiyan;xiaoqiu
- "8.0.0" is the Android version number of the tested mobile phone, please modify it yourself.
#calculate coverage
- We use jacoco to calculate coverage.
- You can download the APP source code in here.
- After testing ,run this code to get the coverage.ec
adb pull mnt/sdcard/coverage.ec C:\Users\user\Desktop\testReport\jacoco
- Put the EC file under “build/outputs/code coverage/connected” in the source code.
- Use Android Studio or Gradle to Run JacocoTestReport,then you can find the result in the "build/reports/jacoco/jacocoTestReport".