jonathanpenn / ui-auto-monkey

UI AutoMonkey is a simple stress testing script for iOS applications that runs in UI Automation and Instruments. Grass fed. Free range.
http://cocoamanifest.net
MIT License
1.47k stars 249 forks source link

Xcode 6 compatibility? #10

Open lbrndnr opened 9 years ago

lbrndnr commented 9 years ago

Hi Jonathan,

Thanks for this great tool :) I could get it to work some time ago but failing to do so now and I can't figure out why. I always get "An error occurred while trying to run the script." error in the log messages. I did everything just like you in the tutorial, as far as I can tell at least.

Do you know what I could be doing wrong? Or is this not working with the current Xcode version?

Thanks in advance :)

CsabaSzabo commented 9 years ago

I've experienced the same with Version 6.0 (6A313) on more machines.

smaljaar commented 9 years ago

Guys if you are testing on device against iOS 8, make sure you have UI Automation enabled in the Developer settings. Settings -> Developer -> Enable UI Automation.

On 27 Oct 2014, at 18:24, Csaba Szabo notifications@github.com wrote:

I've experienced the same with Version 6.0 (6A313) on more machines.

— Reply to this email directly or view it on GitHub https://github.com/jonathanpenn/ui-auto-monkey/issues/10#issuecomment-60632433.

lbrndnr commented 9 years ago

Oh right, thank you! However, I still can't get the script to fully work. I'm developing a keyboard so monkey testing is super helpful. I've tried the script with the embedding app now where it works great. However, when I use it on the keyboard and set the frame accordingly, nothing happens. There is nothing simulated nor written into the console. The script is never executed as it seems. Do you know what I could be doing wrong? Do I have to adjust the script to get this to work?

jonathanpenn commented 9 years ago

Hmm. I suspect that because your keyboard is running in a different process than the embedding application that UIAutomation scripts can't reach the UI. Unfortunately, there's nothing we can do about that yet. The Instruments team needs to update UIAutomation so it supports interacting with UI layers outside of the front most application. Please file a bug with Apple about this and post the radar number you are given here so we can dupe it.

lbrndnr commented 9 years ago

Here you go. Thanks for you help :)

Arunr1 commented 9 years ago

I am trying to run monkey test on iOS 8.1 simulator (Xcode 6.1) but the script auto stops without doing anything. Need help, anybody !!

sandip08888 commented 8 years ago

Hi, I am new to ios app testing. My question may be stupid one but please reply back. Is it possible to test any .ipa installed on ipad / iphone using UI auto monkey? I have only Xcode in my system but no project / source code to corresponding that .ipa file.

If possible then please guide me.