mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-03-20 17:48:44 +00:00
Fix instrumentation for Gmail attach images
Previously the same values were reported for all five images being attached.
This commit is contained in:
parent
a061b4bdcf
commit
de207babdf
Binary file not shown.
@ -110,13 +110,13 @@ public class UiAutomation extends UxPerfUiAutomation {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void attachFiles() throws Exception {
|
public void attachFiles() throws Exception {
|
||||||
Timer result = new Timer();
|
|
||||||
UiObject attachIcon = getUiObjectByResourceId("com.google.android.gm:id/add_attachment",
|
UiObject attachIcon = getUiObjectByResourceId("com.google.android.gm:id/add_attachment",
|
||||||
"android.widget.TextView");
|
"android.widget.TextView");
|
||||||
|
|
||||||
String[] imageFiles = {"1.jpg", "2.jpg", "3.jpg", "4.jpg", "5.jpg"};
|
String[] imageFiles = {"1.jpg", "2.jpg", "3.jpg", "4.jpg", "5.jpg"};
|
||||||
|
|
||||||
for ( int i = 0; i < imageFiles.length; i++) {
|
for ( int i = 0; i < imageFiles.length; i++) {
|
||||||
|
Timer result = new Timer();
|
||||||
result.start();
|
result.start();
|
||||||
|
|
||||||
clickUiObject(attachIcon, timeout);
|
clickUiObject(attachIcon, timeout);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user