mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-03-13 22:28:36 +00:00
Remove redundant logging from Multiapp Workload
Remove duplicate logging that is already captured in the standalone workloads for Gmail and Skype. Expand comment for tagPhoto method in Gmail workload.
This commit is contained in:
parent
2532f36a62
commit
b6edd0627b
Binary file not shown.
Binary file not shown.
@ -417,7 +417,9 @@ public class UiAutomation extends UxPerfUiAutomation {
|
||||
navigateUpButton.click();
|
||||
}
|
||||
|
||||
// Helper to tag an individual photograph based on index in wa-working gallery.
|
||||
// Helper to tag an individual photograph based on the index in wa-working
|
||||
// gallery. After long clicking it tags the photograph with a tick in the
|
||||
// corner of the image to indicate that the photograph has been selected
|
||||
public void tagPhoto(final int index) throws Exception {
|
||||
UiObject workdir = getUiObjectByText("wa-working", "android.widget.TextView");
|
||||
workdir.clickAndWaitForNewWindow();
|
||||
|
Binary file not shown.
@ -18,7 +18,6 @@ public class UiAutomation extends UxPerfUiAutomation {
|
||||
public static String TAG = "uxperf_multiapp";
|
||||
|
||||
public Bundle parameters;
|
||||
private String outputDir;
|
||||
private LinkedHashMap<String, Timer> timingResults = new LinkedHashMap<String, Timer>();
|
||||
|
||||
public void runUiAutomation() throws Exception {
|
||||
@ -50,18 +49,9 @@ public class UiAutomation extends UxPerfUiAutomation {
|
||||
}
|
||||
|
||||
private void sendToGmail() throws Exception {
|
||||
|
||||
final String dumpsysTag = "sendToGmail";
|
||||
final String PACKAGE = "com.google.android.gm";
|
||||
String outputDir = parameters.getString("output_dir", "/sdcard/wa-working");
|
||||
|
||||
com.arm.wlauto.uiauto.gmail.UiAutomation gmail =
|
||||
new com.arm.wlauto.uiauto.gmail.UiAutomation();
|
||||
|
||||
Timer result = new Timer();
|
||||
result.start();
|
||||
|
||||
initDumpsysGfxInfo(PACKAGE);
|
||||
shareUsingApp("Gmail");
|
||||
gmail.clearFirstRunDialogues();
|
||||
|
||||
@ -73,16 +63,11 @@ public class UiAutomation extends UxPerfUiAutomation {
|
||||
gmail.setSubjectField();
|
||||
gmail.setComposeField();
|
||||
gmail.clickSendButton();
|
||||
exitDumpsysGfxInfo(PACKAGE, new File(outputDir, dumpsysTag + "_gfxInfo.log"));
|
||||
|
||||
result.end();
|
||||
timingResults.put("send_to_gmail_contact", result);
|
||||
}
|
||||
|
||||
private void waitForSync() throws Exception {
|
||||
|
||||
// After the initial share request on some devices Gmail returns back
|
||||
// to the launching app, so we need to share the photo onces more and
|
||||
// to the launching app, so we need to share the photo once more and
|
||||
// wait for Gmail to sync.
|
||||
com.arm.wlauto.uiauto.googlephotos.UiAutomation googlephotos =
|
||||
new com.arm.wlauto.uiauto.googlephotos.UiAutomation();
|
||||
@ -96,51 +81,25 @@ public class UiAutomation extends UxPerfUiAutomation {
|
||||
}
|
||||
|
||||
private void logIntoSkype() throws Exception {
|
||||
|
||||
final String dumpsysTag = "logInToSkype";
|
||||
final String PACKAGE = "com.skype.raider";
|
||||
String outputDir = parameters.getString("output_dir", "/sdcard/wa-working");
|
||||
|
||||
com.arm.wlauto.uiauto.skype.UiAutomation skype =
|
||||
new com.arm.wlauto.uiauto.skype.UiAutomation();
|
||||
|
||||
String loginName = parameters.getString("my_id");
|
||||
String loginPass = parameters.getString("my_pwd");
|
||||
|
||||
Timer result = new Timer();
|
||||
result.start();
|
||||
|
||||
initDumpsysGfxInfo(PACKAGE);
|
||||
shareUsingApp("Skype");
|
||||
skype.handleLoginScreen(loginName, loginPass);
|
||||
confirmAccess();
|
||||
exitDumpsysGfxInfo(PACKAGE, new File(outputDir, dumpsysTag + "_gfxInfo.log"));
|
||||
|
||||
result.end();
|
||||
timingResults.put("log_into_skype", result);
|
||||
}
|
||||
|
||||
private void sendToSkype() throws Exception {
|
||||
|
||||
final String dumpsysTag = "sendToSkype";
|
||||
final String PACKAGE = "com.skype.raider";
|
||||
String outputDir = parameters.getString("output_dir", "/sdcard/wa-working");
|
||||
|
||||
com.arm.wlauto.uiauto.skype.UiAutomation skype =
|
||||
new com.arm.wlauto.uiauto.skype.UiAutomation();
|
||||
|
||||
String contactName = parameters.getString("name").replace("_", " ");
|
||||
|
||||
Timer result = new Timer();
|
||||
result.start();
|
||||
|
||||
initDumpsysGfxInfo(PACKAGE);
|
||||
shareUsingApp("Skype");
|
||||
skype.searchForContact(contactName);
|
||||
exitDumpsysGfxInfo(PACKAGE, new File(outputDir, dumpsysTag + "_gfxInfo.log"));
|
||||
|
||||
result.end();
|
||||
timingResults.put("send_to_skype_contact", result);
|
||||
}
|
||||
|
||||
private void shareUsingApp(String appName) throws Exception {
|
||||
|
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user