1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-02-20 20:09:11 +00:00

BenchmarkPi: Updated for uiauto2 refactor

This commit is contained in:
Marc Bonnici 2017-06-28 11:19:57 +01:00
parent 9284472d8b
commit d015cce91e
4 changed files with 6 additions and 3 deletions

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.arm.wlauto.uiauto.benchmarkpi"
package="com.arm.wa.uiauto.benchmarkpi"
android:versionCode="1"
android:versionName="1.0">

View File

@ -33,6 +33,9 @@ public class UiAutomation extends BaseUiAutomation {
public static String TAG = "benchmarkpi";
public Bundle parameters;
public String packageID;
@Test
public void runWorkload() throws Exception {
startTest();
@ -43,7 +46,7 @@ public class UiAutomation extends BaseUiAutomation {
public void extractResults() throws Exception {
UiSelector selector = new UiSelector();
UiObject resultsText = mDevice.findObject(selector.textContains("You calculated Pi in")
.className("android.widget.TextView"));
.className("android.widget.TextView"));
Log.v(TAG, resultsText.getText());
}

View File

@ -29,7 +29,7 @@ if [[ ! -f gradlew ]]; then
exit 9
fi
# Copy base class library from wlauto dist
# Copy base class library from wa dist
libs_dir=app/libs
base_class=`python -c "import os, wa; print os.path.join(os.path.dirname(wa.__file__), 'framework', 'uiauto', 'uiauto.aar')"`
mkdir -p $libs_dir