This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void driverLogs(WebDriver driver, String className, String methodName) { | |
LogEntries logs; | |
try { | |
logs = driver.manage().logs().get("logcat"); | |
} catch (Exception e) { | |
return; | |
} catch (OutOfMemoryError e) { | |
System.out.println("failed to get logcat due to OOM current max memory:" + Runtime.getRuntime().maxMemory() + | |
" current free memory: " + Runtime.getRuntime().freeMemory() ); | |
return; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
#===================================================================== | |
# Selects an android device | |
# Copyright (C) 2012-2013 Diego Torres Milano. All rights reserved. | |
#===================================================================== | |
get_adb_devices() | |
{ | |
adb devices 2>&1 | tail -n +2 | sed '/^$/d' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
##### | |
# | |
# This script creates android emulators on the fly. | |
# | |
# Please refer to the README for usage instructions. | |
# | |
#### |
NewerOlder