mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-21 20:38:57 +00:00
FacebookWorkload: Fixed UI automation and speificed maximum vesrion.
Fixed the workload UI automation and specified the version of facebook that the workload is designed to work with.
This commit is contained in:
parent
694d51ffb6
commit
80a780dcfe
@ -44,6 +44,7 @@ class Facebook(AndroidUiAutoBenchmark):
|
|||||||
"""
|
"""
|
||||||
package = 'com.facebook.katana'
|
package = 'com.facebook.katana'
|
||||||
activity = '.LoginActivity'
|
activity = '.LoginActivity'
|
||||||
|
max_apk_version = '3.4'
|
||||||
|
|
||||||
#'du' specify 'disable update'
|
#'du' specify 'disable update'
|
||||||
du_activity = 'com.android.vending/.AssetBrowserActivity'
|
du_activity = 'com.android.vending/.AssetBrowserActivity'
|
||||||
|
Binary file not shown.
@ -131,10 +131,8 @@ public class UiAutomation extends BaseUiAutomation {
|
|||||||
|
|
||||||
//Search for the facebook account
|
//Search for the facebook account
|
||||||
UiObject clickBar = new UiObject(new UiSelector()
|
UiObject clickBar = new UiObject(new UiSelector()
|
||||||
.className("android.view.View").index(0)
|
|
||||||
.childSelector(new UiSelector()
|
|
||||||
.className("android.widget.ImageButton").index(0)
|
.className("android.widget.ImageButton").index(0)
|
||||||
.description("Main navigation menu")));
|
.description("Main navigation menu"));
|
||||||
clickBar.clickAndWaitForNewWindow(timeout);
|
clickBar.clickAndWaitForNewWindow(timeout);
|
||||||
|
|
||||||
UiObject clickSearch = new UiObject(new UiSelector()
|
UiObject clickSearch = new UiObject(new UiSelector()
|
||||||
@ -189,7 +187,6 @@ public class UiAutomation extends BaseUiAutomation {
|
|||||||
.className("android.widget.RelativeLayout").index(3));
|
.className("android.widget.RelativeLayout").index(3));
|
||||||
friends.click();
|
friends.click();
|
||||||
sleep(timeout);
|
sleep(timeout);
|
||||||
getUiDevice().pressBack();
|
|
||||||
|
|
||||||
//Update the status
|
//Update the status
|
||||||
UiObject updateStatus = new UiObject(new UiSelector()
|
UiObject updateStatus = new UiObject(new UiSelector()
|
||||||
@ -197,7 +194,7 @@ public class UiAutomation extends BaseUiAutomation {
|
|||||||
.childSelector(new UiSelector()
|
.childSelector(new UiSelector()
|
||||||
.className("android.widget.FrameLayout").index(1)
|
.className("android.widget.FrameLayout").index(1)
|
||||||
.childSelector(new UiSelector()
|
.childSelector(new UiSelector()
|
||||||
.className("android.widget.RelativeLayout").index(1)
|
.className("android.widget.RelativeLayout").index(0)
|
||||||
.childSelector(new UiSelector()
|
.childSelector(new UiSelector()
|
||||||
.className("android.widget.LinearLayout").index(0)
|
.className("android.widget.LinearLayout").index(0)
|
||||||
.childSelector(new UiSelector()
|
.childSelector(new UiSelector()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user