1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-04-15 07:10:56 +01:00

Increase wait timeout for views

This commit is contained in:
muendelezaji 2016-05-04 17:57:24 +01:00
parent 366925c5c5
commit 636194be3f
2 changed files with 5 additions and 6 deletions

View File

@ -68,6 +68,9 @@ public class UiAutomation extends UxPerfUiAutomation {
} }
public void runUiAutomation() throws Exception { public void runUiAutomation() throws Exception {
// Override superclass value
this.waitTimeout = 10000;
// Get Params // Get Params
Bundle parameters = getParams(); Bundle parameters = getParams();
String loginName = parameters.getString("my_id"); String loginName = parameters.getString("my_id");
@ -89,10 +92,6 @@ public class UiAutomation extends UxPerfUiAutomation {
videoCallTest(callDuration); videoCallTest(callDuration);
} else if ("voice".equalsIgnoreCase(callType)) { } else if ("voice".equalsIgnoreCase(callType)) {
voiceCallTest(callDuration); voiceCallTest(callDuration);
} else {
// both ?
// voiceCallTest(callDuration);
// videoCallTest(callDuration);
} }
overallTimer.end(); overallTimer.end();
@ -104,8 +103,9 @@ public class UiAutomation extends UxPerfUiAutomation {
private void saveResults(Map<String, Timer> results, String file) throws Exception { private void saveResults(Map<String, Timer> results, String file) throws Exception {
BufferedWriter out = new BufferedWriter(new FileWriter(file)); BufferedWriter out = new BufferedWriter(new FileWriter(file));
long start, finish, duration; long start, finish, duration;
Timer timer;
for (Map.Entry<String, Timer> entry : results.entrySet()) { for (Map.Entry<String, Timer> entry : results.entrySet()) {
Timer timer = entry.getValue(); timer = entry.getValue();
start = timer.getStart(); start = timer.getStart();
finish = timer.getFinish(); finish = timer.getFinish();
duration = timer.getDuration(); duration = timer.getDuration();
@ -183,7 +183,6 @@ public class UiAutomation extends UxPerfUiAutomation {
private void makeCall(int duration, boolean video, String testTag) throws Exception { private void makeCall(int duration, boolean video, String testTag) throws Exception {
String viewName = "com.skype.android.app.calling.CallActivity"; String viewName = "com.skype.android.app.calling.CallActivity";
String dumpsysTag = TAG + "_" + testTag; String dumpsysTag = TAG + "_" + testTag;
int viewTimeout = 5000;
if (video && dumpsysEnabled) { if (video && dumpsysEnabled) {
initDumpsysSurfaceFlinger(PACKAGE, viewName); initDumpsysSurfaceFlinger(PACKAGE, viewName);
initDumpsysGfxInfo(PACKAGE); initDumpsysGfxInfo(PACKAGE);