UIAutomation Tests fail in Xcode 4.3
UIAutomation Tests fail in Xcode 4.3
- Subject: UIAutomation Tests fail in Xcode 4.3
- From: Heath Borders <email@hidden>
- Date: Tue, 28 Feb 2012 14:21:06 -0600
I have many UIAutomation javascript tests for my iPad app. After
upgrading to Xcode 4.3 on Lion 10.7.3, I see a dialog with the
following dialog the first time I run my tests in the Instruments GUI
after restarting my box:
Developer Tools Access is trying to take control of another process.
Type your password to allow this.
Even if I enter my correct credentials, the test often fails with the
following error:
Fail: Could not start script, target application is not frontmost.
When I run my instruments test from the command line, I get the same
dialog, and often the same result.
I also have a script that runs many instruments tests successively.
When I run instruments from this script, I get the following prompt in
my terminal:
instruments: Instruments wants permission to analyze other processes.
Type your password to allow this.
Name ([my-username]):
Password:
Failed to authorize rights (0x20) with status: -60007.
2012-02-28 10:04:19.607 instruments[60398:1203] Failed to connect to
local pid watcher service: (os/kern) failure
2012-02-28 16:04:20 +0000 Fail: An error occurred while trying to run
the script.
2012-02-28 16:04:20 +0000 Fail: The target application appears to have died
I always get the above output, even when I correctly enter my password.
Occasionally, instruments successfully runs my test, but I can't
reproduce that reliably. Much more often, I get one of the above
dialogs or prompts, and then my tests fail.
My user is a member of the developer group, and has administrator privileges.
I filed a radar: rdar://10945962
I found a related stackoverflow question: http://stackoverflow.com/q/9476131/
Thanks!
-Heath Borders
email@hidden
Twitter: heathborders
http://heath-tech.blogspot.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden