GithubHelp home page GithubHelp logo

jonathanpenn / automationexample Goto Github PK

View Code? Open in Web Editor NEW
55.0 55.0 11.0 165 KB

Sample code for how to run UI Automation from the command line.

License: MIT License

Objective-C 32.72% JavaScript 10.85% Shell 56.42%

automationexample's People

Contributors

johngibb avatar jonathanpenn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

automationexample's Issues

Xcode 4.5 issue running instruments

I'm curious if you've tried to get this script to run using Xcode 4.5. I've been trying to run instruments from the command line on 4.5 and I keep getting an error, and I got the same one using this project and following the directions in the README:

https://gist.github.com/3828454

Just curious if this is something broken in 4.5 or if it's something that is wrong with my setup. Thanks.

How to run this for iPad

Great script, thank you. I was able to run this with no problems for iPhone simulator but I want to try iPad.
So I changed the build line to
xcodebuild -sdk iphoneos6.0 clean build CONFIGURATION_BUILD_DIR=$BUILD_DIR

Though the project sucessfully builds I get the following error - last few lines of output

Unable to validate your application. - (null)
** BUILD SUCCEEDED **
posix spawn failure; aborting launch (binary == /tmp/AutomationExample/AutomationExample.app/AutomationExample).
2013-01-21 11:25:29.409 instruments[7361:1603] Recording cancelled : At least one target failed to launch; aborting run
Instruments Trace Error : Failed to start trace.

I made sure I have the iPad/universal sdk with
image

UIAutomation never received kAXAccessibilityLoaded

When I run this using Xcode 5.1 beta 5 it fails to properly start ScriptAgent.

2014-03-07 14:49:24.367 ScriptAgent[3654:2f07] CLTilesManagerClient: initialize, sSharedTilesManagerClient
2014-03-07 14:49:24.367 ScriptAgent[3654:2f07] CLTilesManagerClient: init
2014-03-07 14:49:24.367 ScriptAgent[3654:2f07] CLTilesManagerClient: reconnecting, 0x109e0aba0
2014-03-07 14:49:54.443 ScriptAgent[3654:2f07] +[UIAXElement initializeAccessibility]: UIAutomation never received kAXAccessibilityLoaded.  Waited 30.03 seconds.
2014-03-07 14:49:54.444 ScriptAgent[3654:2f07] AXError: Could not auto-register for pid status change
2014-03-07 14:49:54.452 ScriptAgent[3654:2f07] Failed to enable accessiblity, kAXErrorServerNotFound
2014-03-07 14:49:54.831 instruments[3648:581f] Automation Instrument ran into an exception while trying to run the script.  UIAScriptAgentSignaledException
2014-03-07 20:49:54 +0000 Fail: An error occurred while trying to run the script.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.