Marc Bonnici
242cf7e33a
Revert "Android Device: Add force flag to install_apk"
...
This reverts commit 5d8305cfdc3f15635d50dfd295f3df6370c8a48d.
2017-06-05 17:00:40 +01:00
Marc Bonnici
cc641e8dac
UiautoWorkloads: Updated to use apk files for uiautoamtion tests.
2017-06-05 17:00:40 +01:00
Marc Bonnici
bb17590689
ResourceGetter: Updated to check if an apk is a uiautomation test apk.
...
The getter now checks the apk package name to distinguish between a regular
android apk and a uiautomator apk.
2017-06-05 17:00:40 +01:00
Marc Bonnici
4ce38fcd55
Revert "ResourceGetters: Added support for finding uiautoapk files."
...
This reverts commit b948d28c6296cbeb57060d66415f3948887feced.
2017-06-05 16:55:47 +01:00
Marc Bonnici
bf694ffdf1
Revert "AndroidResource: Add a UiautoApk resource type."
...
This reverts commit bc6af25366aacf394f96b5a93008109904a89e93.
2017-06-05 16:55:47 +01:00
Marc Bonnici
b36e0061e1
AndroidWorkload: Updated to use an 'APK' file instead of a 'uiautoapk'
2017-06-05 16:55:47 +01:00
Marc Bonnici
526ad15c01
AndroidResource: Updated APKFile to add support for uiautomator tests.
...
In newer versions of adb, files cannot be installed unless they use the
`.apk` extension therefore we need to be able to distinguish between
regular apks and instrumented test files.
2017-06-05 16:55:38 +01:00
Sergei Trofimov
0694ab6792
LinuxDevice: rename get_number_of_online_cpus arg
...
Renamed "c" to "core", as that gets passed as a keyword argument inside
get_runtime_parameters().
2017-06-01 14:29:19 +01:00
setrofim
2fd7614d97
Merge pull request #392 from marcbonnici/uiauto2
...
Upgrading to UiAutomator2
2017-05-31 11:22:45 +01:00
marcbonnici
c75c102cd2
Merge pull request #393 from setrofim/master
...
utils/trace_cmd: add parsers for more sched events
2017-05-31 10:48:14 +01:00
Sergei Trofimov
c86ce64408
utils/trace_cmd: add parsers for more sched events
...
Added parsers for sched_wakeup(_new) and sched_stat_* events that have
non-standard text.
2017-05-31 10:42:55 +01:00
Marc Bonnici
d6909c5e6a
PowerUtils: Pylint Fix
2017-05-31 10:36:38 +01:00
Marc Bonnici
55e140f20a
Caffeinemark: Updated to Uiautomator2
2017-05-31 10:36:38 +01:00
Marc Bonnici
0c7a7e4dca
BenchmarkPi: Updated to uiautomator2
2017-05-31 10:36:38 +01:00
Marc Bonnici
a7ed00d9ed
Googleslides: Add workaround for opening navigation drawer
...
On Android N running under the instrumentation uiautomator appears to have
trouble retrieving the root node for the home screen of google slides. Therefore
we open the navigation drawer via a swipe which allows the node to be found again.
2017-05-31 10:36:38 +01:00
Marc Bonnici
89aa3e1208
GoogleSlides: Updated to uiautomator2
...
The latest version of uiautomator2 seems to have an issue with google slides not
being able to interact with any elements on the slide therefore we are using a
slightly older version which doesn't have this issue.
2017-05-31 10:36:38 +01:00
Marc Bonnici
f33fd97705
Videostreaming: Updated to uiautomator2
2017-05-31 10:36:38 +01:00
Marc Bonnici
bf598d1873
Camerarecord: Updated to only use root if device is rooted.
...
Previously the workload would always try and use root to pull framestats file
causing it to fail on unrooted devices.
2017-05-31 10:36:38 +01:00
Marc Bonnici
c094a47f12
Camerarecord: Updated to uiautomator2
2017-05-31 10:36:38 +01:00
Marc Bonnici
6dab2b48ab
Cameracapture: Updated to uiautomator2
2017-05-31 10:36:38 +01:00
Marc Bonnici
1809def83f
Peacekeeper: Updated to Uiautomator2
2017-05-31 10:36:37 +01:00
Marc Bonnici
1158c62c55
Appshare: Updated to Uiautomator2
2017-05-31 10:36:37 +01:00
Marc Bonnici
d13defe242
Glbenchmark: Updated to Uiautomator2
2017-05-31 10:36:37 +01:00
Marc Bonnici
a9c5ab9bc8
Facebook: Updated to Uiautomator2
2017-05-31 10:36:37 +01:00
Marc Bonnici
27af97b795
Quadrant: Updated to Uiautomator2
2017-05-31 10:36:37 +01:00
Marc Bonnici
a0a189044e
Applaunch: Updated to Uiautomator2
...
Certain configurations of this workload requires root and therefore on some
android devices, this will prompt to grant the app su permissions by default. To
ensure this does not interfere with the run, ensure that either, re-request
permission after reinstall/upgrade is not selected or grant access by default.
2017-05-31 10:36:37 +01:00
Marc Bonnici
eca6c10a75
Andebench: Updated to Uiautomator2
2017-05-31 10:36:37 +01:00
Marc Bonnici
01efbe1807
Googlephotos: Updated to Uiautomator2
2017-05-31 10:36:37 +01:00
Marc Bonnici
81f7f92b84
real_linpack: Updated to Uiautomator2
2017-05-31 10:36:37 +01:00
Marc Bonnici
95c98fd458
Antutu: Updated to Uiautomator2
2017-05-31 10:36:37 +01:00
Marc Bonnici
428abfb6a6
Geekbench: Updated to Uiautomator2
2017-05-31 10:36:37 +01:00
Marc Bonnici
a8bf8458ec
Youtube: Updated to Uiautomator2
2017-05-31 10:36:37 +01:00
Marc Bonnici
862eeadb39
Vellamo: Updated to Uiautomator2
2017-05-31 10:36:36 +01:00
Marc Bonnici
ec66e1d166
Sqlitebm: Updated to Uiautomator2
2017-05-31 10:36:36 +01:00
Marc Bonnici
3e4ffa8cd5
Smartbench: Updated to Uiautomator2
2017-05-31 10:36:36 +01:00
Marc Bonnici
dc14e6ed11
Linpack: Updated to Uiautomator2
2017-05-31 10:36:36 +01:00
Marc Bonnici
47ccae1a6b
Googleplaybooks: Updated to Uiautomator2
2017-05-31 10:36:36 +01:00
Marc Bonnici
a2eef179ef
Gmail: Updated to work on new app version.
2017-05-31 10:36:36 +01:00
Marc Bonnici
7eb36b959b
Gmail: Updated to Uiautomator2
2017-05-31 10:36:36 +01:00
Marc Bonnici
b5563113b1
Cfbench: Updated to Uiautomator2
2017-05-31 10:36:36 +01:00
Marc Bonnici
5720d3f214
Androbench: Updated to Uiautomator2
2017-05-31 10:36:36 +01:00
Marc Bonnici
5b82b90939
Skype: Updated to Uiautomator2
2017-05-31 10:36:36 +01:00
Marc Bonnici
bfcb829ab0
AdobeReader: Updated to Uiautomator2
2017-05-31 10:36:36 +01:00
Marc Bonnici
70f646f87d
AndroidWorkload: Added unchangeable android permissions
...
Some android permissions are categorized as 'unchangeable' so we don't need to
try and set them.
2017-05-31 10:36:35 +01:00
Marc Bonnici
3f03dec7af
CreateCommand: Updated to support new build system
...
Using the `android` command to create a new project has been deprecated in favour
of using Android Studio. To avoid this constraint a template project has been added
and this is simply duplicated with the relevant files populated when creating a new
project.
2017-05-31 10:36:35 +01:00
Marc Bonnici
076772da4d
Uiautomator: Upgraded uiautomator base classes to Uiauto2
...
Uiautomator1 has been deprecated, therefore the uiautomation base classes have
been upgraded to use uiautomator2 and the new gradle build system.
Altered to retrieve `package_name` rather than `package` as per the previous commit.
2017-05-30 17:26:14 +01:00
Marc Bonnici
138c95745e
AndroidWorkload: Renamed package
parameter to package_name
...
Using the new instrumental based testing method, `package` is a reserved
parameter and is not passed to the workload correctly.
2017-05-30 12:06:50 +01:00
Marc Bonnici
f517e6c4da
.gitignore: Updated for new uiauto2 gradle based builds
2017-05-30 12:06:50 +01:00
Marc Bonnici
8125c3e0a2
Android Workload: Updated to install and use Uiautomator 2 tests.
...
The new method of using uiautomation 2 is by using instrumented apk files rather
than JAR files. This commit updates the base workload has been updated to
install/uninstall the new uiautomation APK files and to invoke the relevant
instrumentation.
2017-05-30 12:06:50 +01:00
Marc Bonnici
81bdc7251b
AndroidDevice: Pylint Fix
2017-05-30 12:06:36 +01:00