samplingapptest

View the Project on GitHub

Replication instructions

Requisites:

1) Android SDK installed with the proper SDK versions according to the application demand. ANDROID_HOME environment variable must be configured.

2) Java SDK 14. The instrumentation was tested with Oracle Java. JAVA_HOME environment variable must be set.

3) Gradle tool (gradlew). This can be installed on Ubuntu Linux from the Terminal (sudo apt install gradle)

4) Python 3.6 (minimum tested version).

5) A rooted smartphone with Android 10. The simple way is using Magisk. Detailed instructions Xposed framework

6) Sensor Disable app version 3.0.2

7) Sensor Disable Xposed module

8) Each instrumented test class must be extended with the instrumentation

Test suite execution script:

1) Set the desired setting file name (line 8)

2) Set the output folder for test reports (lines 12, 46, 92 e 95)

2) Check the application verification task (line 83) by the command “gradlew tasks”. The common instrumented testing task of applications with standard flavors (debug, release etc) is connectedDebugAndroidTest.

4) Run the script (python3 runExpAll-MultExec.py)

5) Check the output folder with the test reports in HTML format.