Skip to content

Instantly share code, notes, and snippets.

View freynaud's full-sized avatar

François Reynaud freynaud

  • Element34 Solutions GmbH
  • Altendorf, Switzerland
View GitHub Profile
1409774715639 FINE IOSServlet.getResponse session=192841cb-ff4e-4351-ad53-a6bd9f3d2d8d GET:/session/192841cb-ff4e-4351-ad53-a6bd9f3d2d8d/tree body={"translation":false,"native":true,"attachScreenshot":false} in 146ms. Response=(Response: SessionID: null, Status: 0, Value: null)
1409774716079 FINE IOSServlet.getResponse session=192841cb-ff4e-4351-ad53-a6bd9f3d2d8d POST:/session/192841cb-ff4e-4351-ad53-a6bd9f3d2d8d/element body={"using":"xpath","native":true,"value":"//UIAWindow/UIAScrollView/UIAButton"} in 595ms. Response=(Response: SessionID: null, Status: 0, Value: null)
1409774716298 FINE IOSServlet.getResponse session=192841cb-ff4e-4351-ad53-a6bd9f3d2d8d POST:/session/192841cb-ff4e-4351-ad53-a6bd9f3d2d8d/element/9/click body={"id":"9"} in 212ms. Response=(Response: SessionID: null, Status: 0, Value: null)
1409774716486 FINE IOSServlet.getResponse session=192841cb-ff4e-4351-ad53-a6bd9f3d2d8d GET:/session/192841cb-ff4e-4351-ad53-a6bd9f3d2d8d/tree body={"translation":false,"native":true,"attachScre
1 pwd
2 mkdir workspace
3 cd workspace/
4 git clone http://cgit.sukimashita.com/libimobiledevice.git/
5 git clone http://cgit.sukimashita.com/usbmuxd.git/
6 git clone http://cgit.sukimashita.com/libplist.git/
7 cdcd workspace/libplist/
8 cd workspace/libplist/
9 ./autogen.sh
10 sudo apt-get install libxml-2.0
#!/bin/sh
HOST="http://freynaud-mbp.local/~freynaud/"
JAVA_DMG="jdk-7u45-macosx-x64.dmg"
XCODE_DMG="xcode_5.0.2.dmg"
CLI_DMG="command_line_tools_os_x_mavericks_for_xcode__late_october_2013.dmg"
USER="vagrant"
check(){
if [[ $? != 0 ]] ; then
Tests run: 210, Failures: 6, Errors: 0, Skipped: 0, Time elapsed: 835.866 sec <<< FAILURE!
Results :
Failed tests: testCanFlickHorizontallyFast(org.uiautomation.ios.selenium.interactions.touch.TouchFlickTest): Expected x < 1355, but got x = 1355
testCanFlickVertically(org.uiautomation.ios.selenium.interactions.touch.TouchFlickTest): Expected y < 1828, but got y = 1828
testCanScrollHorizontally(org.uiautomation.ios.selenium.interactions.touch.TouchScrollTest): Expected x > 1500, but got x = 764
testCanScrollHorizontallyFromWebElement(org.uiautomation.ios.selenium.interactions.touch.TouchScrollTest): Expected x > 1500, but got x = 764
testCanScrollVertically(org.uiautomation.ios.selenium.interactions.touch.TouchScrollTest): end point is not within the bounds of the screen(..)
testCanScrollVerticallyFromWebElement(org.uiautomation.ios.selenium.interactions.touch.TouchScrollTest): Expected y > 4200, but got y = 1828
Tests run: 210, Failures: 7, Errors: 0, Skipped: 0, Time elapsed: 837.573 sec <<< FAILURE!
Results :
Failed tests: testShouldThrowAnExceptionIfAnAlertHasNotBeenDealtWithAndDismissTheAlert(org.uiautomation.ios.selenium.AlertsTest): timeout waiting for a response for request id : 286(..)
testSwitchingToMissingAlertThrows(org.uiautomation.ios.selenium.AlertsTest): alert present: {(..)
testCanFlickVerticallyFast(org.uiautomation.ios.selenium.interactions.touch.TouchFlickTest): Expected y < 3764, but got y = 3764
testCanScrollHorizontally(org.uiautomation.ios.selenium.interactions.touch.TouchScrollTest): Expected x > 1500, but got x = 764
testCanScrollHorizontallyFromWebElement(org.uiautomation.ios.selenium.interactions.touch.TouchScrollTest): Expected x > 1500, but got x = 764
testCanScrollVertically(org.uiautomation.ios.selenium.interactions.touch.TouchScrollTest): end point is not within the bounds of the screen(..)
- Copy the delivered ipa into a directory to work in.
- export PlistBuddy="/usr/libexec/PlistBuddy" to get the PlistBuddy tool to your shell. If it is not added, all references to PlistBuddy
will need to be written as the full path.
- Take the delivered App.ipa and unzip it using the unzip command. This should produce a Payload directory containing the app and its
resources.
- Enter the command "codesign -d --entitlements :enterprise.plist Payload/PathToApp.app/" This pulls the entitlements out of the app, and
prints them to a plist, without a leading "blob" of data. Pay particular attention to the colon before the enterprise.plist file name.
String[] a = {"-port", "4444", "-host", "localhost",
"-aut", SampleApps.getUICatalogFile(),
"-aut", SampleApps.getUICatalogIpad(),
"-aut", "/Users/freynaud/eBay.app"};
IOSServerConfiguration config = IOSServerConfiguration.create(a);
IOSServer server = new IOSServer(config);
server.start();
public class Test {
public static void main(String[] args) throws Exception {
String[] a = {"-port", "4444", "-host", "localhost",
"-aut", "/Users/freynaud/eBay.app"};
IOSServerConfiguration config = IOSServerConfiguration.create(a);
IOSServer server = new IOSServer(config);
server.start();
https://dl.dropboxusercontent.com/u/24687868/ios-server-0.7.0-SNAPSHOT.jar
https://dl.dropboxusercontent.com/u/24687868/eBay.app%202.zip
https://gist.github.com/freynaud/5826066
➜ libimobiledevice git:(instruments) ✗ make
make all-recursive
Making all in common
make[2]: Nothing to be done for `all'.
Making all in src
CCLD libimobiledevice.la
Undefined symbols for architecture x86_64:
"_debug_buffer", referenced from:
_afc_dispatch_packet in afc.o
_afc_receive_data in afc.o