iphone - Are there any existing library for Automation of UI controls in IOS -
i new ios programming. have task find if can automate ui testing. want do:
put code in application randomly (sounds bad may pre-defined events)sends event messages controls on screen.
since code should able take app, deploy in iphone or ipad , run program.
once app automated code guess easy analytics on obtained performance data.
i have seen fonemonkey looks needs user interaction recorded manually on each device.
any thoughts or suggestions welcome.
- lalith
hello lalith have been creating ui automation tests application , working well. although has tricks, think should take @ these links:
http://answers.oreilly.com/topic/1646-how-to-use-uiautomation-to-create-iphone-ui-tests/
http://alexvollmer.com/posts/2010/07/03/working-with-uiautomation/
if need more help, let me know. :)
edit1:
on viewdidload of viewcontroller can add this:
- (void)viewdidload { [super viewdidload]; //(your code...) // set start after 5 seconds... [self performselector:@selector(starttest) withobject:nil afterdelay:5]; } -(void)starttest{ //took link posted [mybutton sendactionsforcontrolevents:uicontroleventtouchupinside]; }
edit 2:
if([mytextfield canbecomefirstresponder]){ [mytextfield becomefirstresponder]; }
Comments
Post a Comment