jonathanpenn / automationexample Goto Github PK
View Code? Open in Web Editor NEWSample code for how to run UI Automation from the command line.
License: MIT License
Sample code for how to run UI Automation from the command line.
License: MIT License
Hello! How do I make my application run_automation.sh ran under a different version of the simulator?
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.
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.
Though at the end I see Tests passed! notice, application is not being launched and coffee is not being clicked.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.