1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-03-14 22:58:34 +00:00

646 Commits

Author SHA1 Message Date
jimboatarm
1531110bd3 Merge pull request #9 from jimboatarm/code_maintenance
Move confirmAccess method to UxPerfUiAutomation
2016-05-10 12:06:41 +01:00
John Richardson
c8fa9a23cf Move confirmAccess method to UxPerfUiAutomation
Move confirmAccess method out of reader and skype workloads into
UxPerfUiAutomation base class for code reuse.

Amend project properties for reader workload to use SDK version 18.

Update jar files appropriately.
2016-05-09 17:30:39 +01:00
jimboatarm
163e358bf3 Merge pull request #8 from jimboatarm/develop
Fixes for Reader/Gmail/Skype
2016-05-09 15:03:30 +01:00
James Hartley
92e4d41f69 Fixes for Reader/Gmail/Skype
Yet more subtle changes to allow them to run on more devices.
2016-05-09 14:56:25 +01:00
jimboatarm
add4fc3c15 Merge pull request #7 from jimboatarm/googlephotos
Googlephotos
2016-05-09 14:38:28 +01:00
John Richardson
72351dbc18 Remove TAG from log names
Remove TAG prefix from log file names. Add uxperf_ prefix to TAG for
consistency between workloads.
2016-05-09 14:12:01 +01:00
John Richardson
2bee9f4f66 Modify googlephotos after reliability testing
Improve workload  description in __init__.py.
Add saveAndReturn convenience method.
Remove confirmLocalFileAccess method.
2016-05-09 11:15:36 +01:00
John Richardson
3b898125b0 Merging master into googlephotos 2016-05-06 22:36:48 +01:00
John Richardson
16551a5d3f Extend Googlephotos workload
Extend workload to add crop and rotation testing to UI automation.
Add SurfaceFlinger dumps whilst performing editing operations.
2016-05-06 22:31:41 +01:00
muendelezaji
ed305d20f8 Merge pull request #6 from jimboatarm/develop
Two batches of fixes to make productivity workloads run on more devices
2016-05-06 18:22:50 +01:00
jimboatarm
9c45c42f69 Merge pull request #5 from jimboatarm/wl-skype
Skype workload
2016-05-05 23:43:20 +01:00
James Hartley
26443f66cc Fix for Skype on particular devices and updated jar files
Some devices issue a pop up to confirm local file access which needs to be handled.
2016-05-05 23:40:59 +01:00
James Hartley
c624979caa Merge commit 'cde0b12c5dda9cc7d8d0ae5421df4a03f65a0df3' into develop 2016-05-05 23:39:34 +01:00
James Hartley
5d0f676033 More fixes to Reader/Gmail/Photos to improve reliability across devices 2016-05-05 22:22:10 +01:00
muendelezaji
cde0b12c5d Changes after review of pull #5
- Use superclass writeToFile - improved to accept generic Map collections
- Change timer results format to one more in line with the rest
2016-05-05 20:07:51 +01:00
muendelezaji
f648cbe614 Merge remote-tracking branch 'upstream/master' into wl-skype 2016-05-05 18:46:33 +01:00
muendelezaji
f210757424 Change workload name to skype 2016-05-05 18:45:44 +01:00
muendelezaji
4f5fdd6439 Changes after review pull of #5 2016-05-05 16:48:03 +01:00
muendelezaji
01568d8184 Minor fixes
Parse boolean from parameters
Pull up TextView class string into constant
2016-05-05 12:31:54 +01:00
johnrchrdsn
44f99dcc79 Merge pull request #4 from jimboatarm/develop
Fixes for Reader/Gmail/Photos
2016-05-05 11:32:52 +01:00
James Hartley
d77b29165f Fixes for Reader/Gmail/Photos
Check in missing UiAutomation .class files
Fix generation and deletion of dump sys logs including renaming to a standard [test tag]_[test number].log format
Improved Reader to run across a range of devices with subtlety different layouts and views
2016-05-05 11:21:31 +01:00
muendelezaji
636194be3f Increase wait timeout for views 2016-05-04 17:57:24 +01:00
muendelezaji
366925c5c5 gfxinfo and SurfaceFlinger instrumentation
Also added workload description
2016-05-04 16:59:33 +01:00
jimboatarm
4dce709cd1 Merge pull request #2 from jimboatarm/googlephotos
Googlephotos productivity workload
2016-05-04 13:21:53 +01:00
John Richardson
31cf06b62a Extended BaseUiAutomation and UxPerfUiAutomation
Moved common functionality to base classes for code reuse. Refactored
googlephotos, reader and gmail workloads to take advantage of the new
base class methods and removed total test time metric.

New methods for BaseUiAutomation:
uiDeviceVertPinchIn, uiDeviceVertPinchOut

New methods for UxPerfUiAutomation:
uiObjectVertPinchTest, writeResultsToFile, startDumpsysSurfaceFlinger,
startDumpsysSurfaceFlinger, startDumpsysGfxInfo, stopDumpsysGfxInfo

New class for UxPerfUiAutomation:
GestureTestParams
2016-05-04 11:56:06 +01:00
John Richardson
c2a68074be Googlephotos productivity workload
A new workload to perform standard productivity tasks within
Googlephotos. Each user event/step is timed and reported back as a
metric. Dumpsys also captures SurfaceFlinger logs for each event for
post analysis.
2016-05-04 11:49:04 +01:00
muendelezaji
1396c5404f Simplify metric collection 2016-05-04 09:34:44 +01:00
James Hartley
e1827ffde2 Tidy up Reader timing instrumentation and fix build error 2016-05-03 18:16:17 +01:00
James Hartley
091e1054ab Fix Gmail workload to run across more devices
Changes to deal with subtle differences in layouts between tablets and handsets.
Stop pushing files to he Camera directory for test purposes.
2016-05-03 18:14:59 +01:00
James Hartley
8e66616159 Add clickUiObject to BaseUiAutomation
Convenience method to click on o UiObject and throw an exception if the view does not change within a specified timeout.
2016-05-03 18:13:03 +01:00
muendelezaji
c65878fee4 Formatting change 2016-05-03 17:01:46 +01:00
muendelezaji
915023dfd7 Add basic instrumentation for call times
- Also, extend UxPerfUiAutomation instead of BaseUiAutomation
2016-05-03 16:59:46 +01:00
muendelezaji
055da519d2 Add Skype workload
- Makes a video or voice call - actions and accounts to use
  have to be specified in agenda. See template-agenda
- Instrumentation to follow soon
2016-05-03 14:42:17 +01:00
muendelezaji
afa580af63 ApkWorkload extension support
- Allow disabling main activity launch in setup (required for some apps)
- Parameterise clear data on reset (default behaviour unchanged)
2016-05-03 14:25:15 +01:00
James Hartley
73a54103e1 Update Gmail workload to attached images to sample email
Adds 5 image files to the email before sending.
2016-04-28 21:36:05 +01:00
James Hartley
b0d0a19bf0 Reader productivity workload
A new workload to perform standard productivity tasks within Reader. Each user event/step is timed and reported back as a metric.  Dumpsys also captures SurfaceFlinger logs for each event for post analysis.
2016-04-28 13:13:36 +01:00
James Hartley
cc2280a317 Gmail productivity workload
A new workload to perform standard productivity tasks within Gmail.  Each user event/step is timed and reported back as a metric.
2016-04-28 13:03:03 +01:00
James Hartley
d01f338a1d Add UxPerfUiAutomation class
This extends on BaseUiAutomation to include Ux performance instrumentation and UiAutomation convenience classes.

Todo - extend the create workload infrastructure to allow you to create a new UxPerfUiAutomation workload.
2016-04-28 13:00:02 +01:00
James Hartley
5702a145ef Extend uiauto build script to copy all dependant classes
This allows the addition of more uiauto related classes beyond BaseUiAutomation.
2016-04-28 11:45:49 +01:00
James Hartley
16ba611789 Add more convenience methods to BaseUiAutomation.
These additions make it easier to get UiObjects and perform UiDevice based gestures when writing UiAutomation workloads
2016-04-26 17:54:49 +01:00
James Hartley
73c8ca86a3 Update BaseUiAutomator class to API level 18
The change will allow us to use UiAutomator methods introduced in API 18, such as resourceId.
As a consequence of the change all dependent uiauto workloads have been incremented also.

Tested by rebuilding all uiautomator workloads. They were not run on devices.
2016-04-26 17:50:29 +01:00
setrofim
6c4d88ff57 Merge pull request #147 from setrofim/master
create command: fix example parameter name in templates
2016-04-20 14:45:16 +01:00
Sergei Trofimov
a40542d57b create command: fix example parameter name in templates
Parameter name in workload templates updated to be a valid identifier.
2016-04-20 14:43:07 +01:00
Sergei Trofimov
697aefc7bb ApkWorkload: clear app data on failed uninstall.
If uninstall fails, "pm clear" should be called to make sure that the
next time the app is launched it starts from a known state (which would
normally be ensured by the uninstall).
2016-04-19 16:43:42 +01:00
Sergei Trofimov
8bc71bb810 ApkWorkload: report correct apk verison on failed install
It's possible that there is already a version of an app on target that
differs form the version of the apk on the host. In such cases, WA will
usually try to uninstall the target version and install the host
version.

It's possible that the uninstall may fail. If that happens, it will be
reported as a warning but workload exectuion will proceed with the
target version. In this case, apk_version would have already been set to
that of the host apk. This change ensures that the APK version is
correctly set to the target version (the one that actually ran).
2016-04-19 16:33:37 +01:00
Sebastian Goscik
91210f26e9 RunCommand: WA no longer runs with no workloads specs
Previously if no worklaod specs were loaded, WA would still start instruments
and then go immediately to the teardown stage. This no longer happens.
2016-04-19 16:32:53 +01:00
Sergei Trofimov
44a49db04d glbcorp: pep8 fix
Added a missing blank line between method declaration and class
attribute definitions.
2016-04-15 16:39:24 +01:00
setrofim
0bfa4bff3c Merge pull request #142 from ep1cman/master
glbench updates
2016-04-14 16:41:26 +01:00
Sebastian Goscik
73aa590056 glbench: renamed start_activity to launch_package
To match changes made in: ff5f48b7e70117dc4161f2bd986438450f73cc16
2016-04-14 16:36:37 +01:00
Sebastian Goscik
985b249a24 glbench: Fixed ending regex
Updated the regex that detected the end of the benchmark to match the new
logcat format.
2016-04-14 16:36:37 +01:00