ios-ui-automation

How to get UIAutomation, Simulator, and Xcode Debugger Running at the same time?

懵懂的女人 提交于 2019-12-03 08:41:03
Can anyone point me to the documentation on how to make Instruments run UIAutomation scripts and start the iPhone application with the debugger running in the Simulator? Constraints: I only have iPhone 3g hardware to test with and debugging against the device with UIAutomation just does not reliably work. Normally the test scripts are just ran to make sure everything passes, but now a weird bug exists that only gets triggered when the UIAutomation script runs (which is a good thing). The bug cannot be duplicated in manual operation. There does not seem to be anyway to attach Instruments

postbuild UIAutomation script not running in jenkins

心不动则不痛 提交于 2019-12-03 05:37:37
I am trying to do End-to-End automation for an iOS project . My aim is to automate the continuous integration process with attaching UIAutomation scripts as post build action. So from the time when a user do check his code in SVN and till we get test result of automation, everything will be automated. Jenkins is installed on my local machine and running on localhost . Now I have automated build process through jenkins and at other end I have my shell script ready which will run UIAutomation java scripts on build output. When I use my shell script as post build action then I get error in

What's the difference between setAccessibilityLabel and accessibilityIdentifier in ios?

核能气质少年 提交于 2019-12-03 04:43:33
问题 I've been going through our code base and setting the accessibilityIdentifier property on all of our buttons and text fields so that I can access them using UIAutomation. While doing this, I came across some code that was already in place. [_goodButton setAccessibilityLabel:@"off"]; I can't find any documentation on what the differences are between these two methods. It looks like they do the same thing. Does anyone know? I find it peculiar that this label is set to "off" as well. 回答1:

What's the difference between setAccessibilityLabel and accessibilityIdentifier in ios?

丶灬走出姿态 提交于 2019-12-02 17:52:11
I've been going through our code base and setting the accessibilityIdentifier property on all of our buttons and text fields so that I can access them using UIAutomation. While doing this, I came across some code that was already in place. [_goodButton setAccessibilityLabel:@"off"]; I can't find any documentation on what the differences are between these two methods. It looks like they do the same thing. Does anyone know? I find it peculiar that this label is set to "off" as well. Joshua Instead of using accessibilityLabel (see below) you should use accessibilityIdentifier . This github issue

import tuneup.js file not found

别来无恙 提交于 2019-12-02 07:09:26
问题 Using the Xcode iOS Instruments UI Automation tuneup.js javascript library https://github.com/alexvollmer/tuneup_js . I'm having challenges understanding the current working diretory of my launched instrument. I have not been able to make a relative path to the tuneup/tuneup.js script. The destination of the relative path is of course "tuneup/tuneup.js". But what is the starting point? Here's the code: // This works: #import "/Users/mikes/Documents/Full/Path/To/File/Tests/tuneup/tuneup.js" //

import tuneup.js file not found

做~自己de王妃 提交于 2019-12-02 05:49:12
Using the Xcode iOS Instruments UI Automation tuneup.js javascript library https://github.com/alexvollmer/tuneup_js . I'm having challenges understanding the current working diretory of my launched instrument. I have not been able to make a relative path to the tuneup/tuneup.js script. The destination of the relative path is of course "tuneup/tuneup.js". But what is the starting point? Here's the code: // This works: #import "/Users/mikes/Documents/Full/Path/To/File/Tests/tuneup/tuneup.js" // These do not work: //#import "tuneup/tuneup.js" //#import "Tests/tuneup/tuneup.js" // // See https:/

iOS/UI Automation: UIAActionSheet does not have possibilities to manipulate with buttons

戏子无情 提交于 2019-12-02 03:22:14
My question is related to UI Automation template from XCode's Instruments tool. How does UI Automation support UIActionSheet testing? I know that there is a UIAActionSheet element and I was able to obtain it in my application. But I do not know how to get and manipulate with buttons from the action sheet. UI Automation does not provide any elements for these buttons. The UI Automation documentation does not have any info on the matter either. See the link below. It looks like this control does not use UIButton class for the buttons and renders them in some specific way. Could you give me some

UI automation with excel

你说的曾经没有我的故事 提交于 2019-12-01 02:23:50
I am new to UI Automation. In my current organisation I was tasked with making an automated tool using GUI(Graphics User Interface) screen reading, but it is not working perfectly with other my colleague's machine because of a difference in screen resolution. I watched this link on you-tube to try and understand UI Automation with excel, but I can't find much on this topic anywhere else. Can anyone direct me toward resources on UI Automation? I Would like to know where I can learn it, read about it, and how to implement it with Excel. Thanks in advance I really appreciate if anyone could help

Can we use UI Automation tools with the iPhone Simulator?

☆樱花仙子☆ 提交于 2019-11-30 23:42:01
I’ve been using the new UI automation tools with Instruments and the iPhone SDK 4.0, but so far I haven’t been able to get it to run under the iPhone Simulator. I’ve tried setting the target to every location possible—my build folder, the app folder in ~/Library/Application Support/iPhone Simulator, etc.—but I get an error message when I try to run it: Unexpected error in -[UIATarget_0x5a1e3b0 frontMostApp], /SourceCache/UIAutomation_Sim/UIAutomation-37/Framework/UIATargetElements.m line 437, Has anyone gotten this to work? If you have trouble getting the correct target, running your project

Can we use UI Automation tools with the iPhone Simulator?

▼魔方 西西 提交于 2019-11-30 18:50:44
问题 I’ve been using the new UI automation tools with Instruments and the iPhone SDK 4.0, but so far I haven’t been able to get it to run under the iPhone Simulator. I’ve tried setting the target to every location possible—my build folder, the app folder in ~/Library/Application Support/iPhone Simulator, etc.—but I get an error message when I try to run it: Unexpected error in -[UIATarget_0x5a1e3b0 frontMostApp], /SourceCache/UIAutomation_Sim/UIAutomation-37/Framework/UIATargetElements.m line 437,