Sebastian Goscik
ff2f88fbd7
Merge pull request #225 from jimboatarm/googlephotos_uxperf
...
Add googlephotos workload
2016-09-09 14:26:46 +01:00
John Richardson
96f4ade874
Add googlephotos workload
2016-09-09 09:56:15 +01:00
setrofim
ac0256e377
Merge pull request #239 from jimboatarm/googleplaybooks_fix
...
Updates and fixes for googleplaybooks workload
2016-09-08 15:50:17 +01:00
Sebastian Goscik
793af6253f
Merge pull request #241 from jimboatarm/skype_uxperf
...
Add Skype workload
2016-09-08 13:34:57 +01:00
John Richardson
5ef7d2dd44
Remove skypevideo workload
...
The original skypevideo workload has now been replaced with the newer
skype workload.
2016-09-07 16:51:40 +01:00
John Richardson
cf8cb5bfab
Add Skype workload
2016-09-07 16:45:11 +01:00
muendelezaji
9376c6875b
ApkWorkload extension support
...
- Allow disabling main activity launch in setup (required for some apps)
- Parameterise clear data on reset (default behaviour unchanged)
2016-09-07 16:45:07 +01:00
setrofim
a6347f5833
Merge pull request #240 from ep1cman/master
...
Workloads: Fixed issues with calling super
2016-09-06 10:16:08 +01:00
Sebastian Goscik
38a7e01e83
Workloads: Fixed issues with calling super
...
Super works by having a iterator of parent classes to ensure each is called
once and only once. WA calls some parent methods in classes with multiple
inheritenceconditionally so calls them directly instread. This breaks super
which ends up calling some methods multiple times.
To work around this until workloads are reworked to use composition rather than
inheritance, all classes that that subclass `Workload` directly no longer use
`super`.
2016-09-06 10:11:09 +01:00
John Richardson
e18366b3f8
Add support for chrome books to googleplaybooks workload
...
Accommodate layout changes in googleplaybooks on chrome book devices
when accessing the action bar menu in the app.
2016-09-05 17:15:49 +01:00
Sebastian Goscik
b9701201a3
Merge pull request #227 from jimboatarm/upstream-youtube
...
Add Youtube workload
2016-09-05 15:37:47 +01:00
muendelezaji
441ba974b7
Youtube workload
2016-09-05 15:03:53 +01:00
John Richardson
a33df50ce8
Use new AndroidUxPerformance class in googleplaybooks
...
Utilise new convenience method for checking for an valid internet
connection and set the min_apk_version within the AndroidUxPerformance
class.
2016-09-05 14:56:14 +01:00
John Richardson
52d4635fe8
Improve logic for scrolling during book search
2016-09-02 15:29:28 +01:00
John Richardson
14924ec6f4
Remove hardcoded package name from googleplaybooks workload
2016-09-02 15:29:28 +01:00
setrofim
3d610788a3
Merge pull request #238 from jimboatarm/check_app_version_uxperf
...
Add check_app_version method to ApkWorkload
2016-09-02 11:59:08 +01:00
John Richardson
1986511ae8
Add check_app_version method to ApkWorkload
...
Implement new method to enforce that a valid apk version is used to run
the workload. Based on a min and max range of apk versions tested
during development.
2016-09-02 11:56:40 +01:00
Sebastian Goscik
175e7f3cc0
Merge pull request #237 from jimboatarm/workload-check-internet
...
Add network check methods to Device and Workload classes
2016-09-02 10:35:01 +01:00
muendelezaji
392a3f1600
Add network check methods to Device and Workload classes
...
- Device subclasses should provide their own implementation.
Default behaviour is to raise a `NotImplementedError`
- Workload subclasses can set `requires_network` to `True` and
network connectivity check will be performed during `setup()`
2016-09-02 10:33:18 +01:00
Sebastian Goscik
b5c0bdb0eb
Merge pull request #236 from jimboatarm/android_uxperf_workload
...
Android uxperf workload
2016-08-31 15:02:57 +01:00
John Richardson
502b0ed4b3
Add package name to uiautomator params in AndroidUxPerfWorkload
...
The package name is common to all workloads that inherit from this
class and is used when locating UI elements.
2016-08-31 14:44:21 +01:00
John Richardson
cab9d918ab
Move uiautomator params in AndroidUxPerfWorkload
...
uiautomator parameters are set per instance of a workload and not per
iteration. Move uiautomator parameter assignment from setup() to
validate().
2016-08-31 14:43:33 +01:00
Sebastian Goscik
e686e89b39
Merge pull request #234 from jimboatarm/broadcast_media_mounted
...
Add broadcast_media_mounted method to android device
2016-08-31 11:43:42 +01:00
John Richardson
b510b31052
Add broadcast_media_mounted method to android device
...
New method to force a re-index of the mediaserver cache for the
specified directory. Used in workloads that require external media files
as dependencies.
2016-08-31 10:24:06 +01:00
setrofim
5b59d101ef
Merge pull request #232 from ep1cman/cleanup
...
Cleanup
2016-08-26 17:32:50 +01:00
Sebastian Goscik
7713f02252
Execution: Added a clean_up
global config to delete WA files from devices
...
Adds a WA configuration point `clean_up` that will delete the WA binaries
directory and the WA working directory from a device at the end of a WA run.
2016-08-26 17:25:11 +01:00
Sebastian Goscik
0a2afdfd84
AndroidDevice: Added -rf
to delete_files
...
This allows it to delete folders and makes it consistend with LinuxDevice.
2016-08-26 17:13:21 +01:00
Sebastian Goscik
530714c61c
Merge pull request #228 from jimboatarm/uxperf_workload_class
...
Add new AndroidUxPerfWorkload class
2016-08-26 13:46:25 +01:00
John Richardson
67f418f79f
Add new AndroidUxPerfWorkload class
...
Create a new workload class to encapsulate functionality common to all
uxperf workloads.
2016-08-26 12:22:39 +01:00
setrofim
64860a2d1a
Merge pull request #229 from ep1cman/dependencies
...
pylint fixes
2016-08-25 14:25:42 +01:00
Sebastian Goscik
f57dd83d1a
pylint fixes
2016-08-25 14:20:10 +01:00
setrofim
3782a33060
Merge pull request #226 from ep1cman/version_check_fixes
...
Version check fixes
2016-08-24 16:01:18 +01:00
Sebastian Goscik
8e27794124
Added a script to check APK/Workload versions for inconsistencies
2016-08-24 15:48:22 +01:00
Sebastian Goscik
9d4aa4983a
antutu: Fixed setting permissions
...
It has been observed on some devices that the FINE_LOCATION premissions is required
for antutu to run without asking for permissions at run time but this was not listed
in the APK manifest. This caused issues on devices were only the permissions in the
manifest can be granted. This commit sliences any error when trying to set this permission
as well as only trying only on Android 6+
2016-08-24 14:36:00 +01:00
Sebastian Goscik
b426e00f2f
Updated workload versions to match APK files
...
Some workloads presented a different version than what was in the APK file.
With the changes introduced in bb33123 several workloads broke.
2016-08-24 14:33:18 +01:00
Sebastian Goscik
07d34e5615
ApkWorkload: Moved APK resolution into setup
...
Previously if you had multiple versions of the same workload in one
agenda only the first one would work, the others would fail to find
their APK.
2016-08-24 14:28:53 +01:00
Sebastian Goscik
b1ae5a5465
Merge pull request #224 from setrofim/master
...
ssh: fixing rasing of CalledProcessErrorWithStderr
2016-08-23 17:26:07 +01:00
Sergei Trofimov
4ea4bc8631
ssh: fixing rasing of CalledProcessErrorWithStderr
...
CalledProcessErrorWithStderr is a subclass of CalledProcessError that
also takes stderr output. Both that and normal output must be passed as
keyword arguments. They were being passed as keyword arguments inside
_scp() of SshConnection, causing cryptic errors to appear.
Additionally, "output" was not being properly poped off before invoking
super's init.
2016-08-23 17:22:02 +01:00
Sebastian Goscik
fe259dca05
Merge pull request #216 from jimboatarm/googleplay_uxperf
...
Add UxPerfUiAutomation and googleplaybooks workload
2016-08-09 13:49:02 +01:00
John Richardson
86f3066f56
Add unsupported package check to AndroidUiAutoBenchmark
...
Add method to automatically check against a dictionary of known package
versions that don't work well with AndroidUiAutoBenchmark workloads.
Raises an exception if found.
2016-08-09 12:08:28 +01:00
John Richardson
0f579e18b3
Add googleplaybooks workload
2016-08-09 12:08:20 +01:00
John Richardson
25172fb027
Add UxPerfUiAutomation class
...
UxPerfUiAutomation contains methods specific to UX performance testing.
2016-08-09 09:56:04 +01:00
John Richardson
550a0db61a
Rename dumpsys_enabled parameter to markers_enabled
...
Change parameter name for enabling markers to better reflect its
purpose. The old name was a misnomer.
2016-08-09 09:56:04 +01:00
John Richardson
73c2609a72
Fix message regex in uxperf result processor
...
The logcat output differs between devices. Modify the regex pattern to
accommodate different output formats when matching UX_PERF markers.
2016-08-09 09:56:04 +01:00
setrofim
1ec7961b0e
Merge pull request #210 from drcef/master
...
Implemented visual state detection functionality for revent workloads
2016-08-05 11:57:59 +01:00
George Psimenos
01f2a5f412
Implemented visual state detection functionality for revent workloads
...
- Added statedetect.py in utils which is a standalone module that
contains all the methods needed for state detection
- Modified the setup() and run() methods of the GameWorkload class
in common/android/workload.py to have a parameter that enables
state checks and run the check after setup and run if requested.
State detection uses the template matching method available in
OpenCV to determine the state of the workload by detecting
predefined unique elements on a screenshot from the device.
2016-08-05 10:09:18 +01:00
setrofim
480a054860
Merge pull request #220 from ep1cman/master
...
RunConfiguration: Fixed disabling of instruments in workload specs
2016-08-04 16:18:52 +01:00
Sebastian Goscik
e9ba9352a6
RunConfiguration: Fixed disabling of instruments in workload specs
2016-08-04 16:16:53 +01:00
Sebastian Goscik
0a3ff099c0
Merge pull request #219 from jimboatarm/mdzj/upstream-get-assets
...
Add script to get external assets for workloads
2016-08-04 15:46:16 +01:00
muendelezaji
75cc5854bf
Add script to get external assets for workloads
2016-08-04 13:59:12 +01:00