ios-ui-automation

can I set accessibility identifier in interface builder? Xcode4.2

别说谁变了你拦得住时间么 提交于 2019-11-28 08:09:19
I can only set Accessibility Label in interface builder, but in UI Automation,I need Accessibility Identifier to get the UI elements. any way to do this? In Xcode 7.1 (ios 9.0) you could do it as simple as possible. Please find the image attached. You could simply access it as view.accessibilityIdentifier Joseph The accessibilityIndentifier can be set in IB by using the Identity Inspector tab's 'User Defined Runtime Attributes': Key Path: accessibilityIdentifier Type: String Value: Chosen accessibilityIdentifier text E.g. setting a scroll view to have the accessibility ID 'ScrollView': Note:

Is there a way to remove the authorization prompt from command-line instances of Instruments (XCode)?

倾然丶 夕夏残阳落幕 提交于 2019-11-27 10:45:19
I am currently using Instruments via a bash script to initiate the command-line interface to start up runs of the Automation plug-in. With 4.2, this worked well enough, however with the upgrade to Xcode 4.3, I am now being prompted for an authorized user to 'analyze other processes'. No user is ever actually authenticated, even if the correct credentials are granted. I get the following error: Failed to authorize rights (0x20) with status: -60007. 2012-02-27 19:30:37.232 instruments[54151:1c03] Failed to connect to local pid watcher service: (os/kern) failure Even with the authentication

iOS Tests/Specs TDD/BDD and Integration & Acceptance Testing

不羁的心 提交于 2019-11-27 05:42:54
What are the best technologies to use for behavior-driven development on the iPhone? And what are some open source example projects that demonstrate sound use of these technologies? Here are some options I've found: Unit Testing Test::Unit Style OCUnit/SenTestingKit as explained in iOS Development Guide: Unit Testing Applications & other OCUnit references . Examples: iPhoneUnitTests , Three20 CATCH GHUnit Google Toolbox for Mac: iPhone Unit Testing RSpec Style Kiwi (which also comes with mocking & expectations) Cedar Jasmine with UI Automation as shown in dexterous' iOS-Acceptance-Testing

can I set accessibility identifier in interface builder? Xcode4.2

懵懂的女人 提交于 2019-11-27 02:06:42
问题 I can only set Accessibility Label in interface builder, but in UI Automation,I need Accessibility Identifier to get the UI elements. any way to do this? 回答1: In Xcode 7.1 (ios 9.0) you could do it as simple as possible. Please find the image attached. You could simply access it as view.accessibilityIdentifier 回答2: The accessibilityIndentifier can be set in IB by using the Identity Inspector tab's 'User Defined Runtime Attributes': Key Path: accessibilityIdentifier Type: String Value: Chosen

Automated testing for iPhone [closed]

时间秒杀一切 提交于 2019-11-26 23:26:18
I know this one is going to be a long-shot, but I thought I'd try. Does anyone know of any automated test anything for the iPhone simulator? I'd love it if there was something like Selenium but for the iPhone simulator. I don't need anything fancy like assertions, just something that can fake out taps on a screen so I can stop abusing my trackpad. :) Is there a way to send taps or keyevents (like on android over adb) to iOS devices? Marc Novakowski Here's an article about automated user interface testing for the iPhone that you may find helpful. It's a little kludgy but it probably gets the

Is there a way to remove the authorization prompt from command-line instances of Instruments (XCode)?

馋奶兔 提交于 2019-11-26 15:18:46
问题 I am currently using Instruments via a bash script to initiate the command-line interface to start up runs of the Automation plug-in. With 4.2, this worked well enough, however with the upgrade to Xcode 4.3, I am now being prompted for an authorized user to 'analyze other processes'. No user is ever actually authenticated, even if the correct credentials are granted. I get the following error: Failed to authorize rights (0x20) with status: -60007. 2012-02-27 19:30:37.232 instruments[54151

Can the UI Automation instrument be run from the command line?

杀马特。学长 韩版系。学妹 提交于 2019-11-26 14:18:28
Is there a way to open the UIAutomation instrument through the terminal? Will it be possible to write an AppleScript to open Apple's UIAutomation tool and load the application to be tested? Can you please tell me is there any way through scripting or through the command line we can open UIAutomation and select the app to be tested, as well as select the test script? Farhan Ahmed Wasim instruments -t /Developer/Platforms/iPhoneOS.platform/Developer/Library/Instruments/\ PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate \ <full_path_to_application> -e UIASCRIPT

iOS Tests/Specs TDD/BDD and Integration & Acceptance Testing

送分小仙女□ 提交于 2019-11-26 12:49:01
问题 What are the best technologies to use for behavior-driven development on the iPhone? And what are some open source example projects that demonstrate sound use of these technologies? Here are some options I\'ve found: Unit Testing Test::Unit Style OCUnit/SenTestingKit as explained in iOS Development Guide: Unit Testing Applications & other OCUnit references. Examples: iPhoneUnitTests, Three20 CATCH GHUnit Google Toolbox for Mac: iPhone Unit Testing RSpec Style Kiwi (which also comes with

Automated testing for iPhone [closed]

我们两清 提交于 2019-11-26 08:39:57
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I know this one is going to be a long-shot, but I thought I\'d try. Does anyone know of any automated test anything for the iPhone

Can the UI Automation instrument be run from the command line?

亡梦爱人 提交于 2019-11-26 03:50:35
问题 Is there a way to open the UIAutomation instrument through the terminal? Will it be possible to write an AppleScript to open Apple\'s UIAutomation tool and load the application to be tested? Can you please tell me is there any way through scripting or through the command line we can open UIAutomation and select the app to be tested, as well as select the test script? 回答1: instruments -t /Developer/Platforms/iPhoneOS.platform/Developer/Library/Instruments/\ PlugIns/AutomationInstrument.bundle