mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-11-04 09:02:12 +00:00 
			
		
		
		
	Merge pull request #18 from jimboatarm/fudge
Fix instrumentation for Gmail attach images
This commit is contained in:
		
										
											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);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user