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

Group the create new Gmail instrumentation timings and fix for sendMail

Adding the prefix will group these timings together when the logs are post processed.

On some devices the conversation view is minimised when creating a new mail so no longer check for the Navigate button, just check the send view has disappeared.
This commit is contained in:
James Hartley 2016-05-09 16:43:26 +01:00
parent 6fa953d5b4
commit a0e3bafbf0
2 changed files with 6 additions and 8 deletions

View File

@ -62,7 +62,7 @@ public class UiAutomation extends UxPerfUiAutomation {
result.start();
clickUiObject(newMailButton, timeout);
result.end();
timingResults.put("newMail", result);
timingResults.put("Create_newMail", result);
}
public void setToField() throws Exception {
@ -73,7 +73,7 @@ public class UiAutomation extends UxPerfUiAutomation {
toField.setText(recipient);
getUiDevice().pressEnter();
result.end();
timingResults.put("To", result);
timingResults.put("Create_To", result);
}
public void setSubjectField() throws Exception {
@ -85,7 +85,7 @@ public class UiAutomation extends UxPerfUiAutomation {
subjectField.setText("This is a test message");
getUiDevice().pressEnter();
result.end();
timingResults.put("Subject", result);
timingResults.put("Create_Subject", result);
}
public void setComposeField() throws Exception {
@ -95,7 +95,7 @@ public class UiAutomation extends UxPerfUiAutomation {
composeField.setText("This is a test composition");
getUiDevice().pressEnter();
result.end();
timingResults.put("Compose", result);
timingResults.put("Create_Compose", result);
}
public void clickSendButton() throws Exception {
@ -104,11 +104,9 @@ public class UiAutomation extends UxPerfUiAutomation {
result.start();
clickUiObject(sendButton, timeout);
result.end();
timingResults.put("Send", result);
timingResults.put("Create_Send", result);
UiObject drawerButton = new UiObject(new UiSelector().descriptionContains("avigat")
.className("android.widget.ImageButton"));
waitObject(drawerButton, networkTimeoutSecs);
sendButton.waitUntilGone(networkTimeoutSecs);
}
public void attachFiles() throws Exception {