How to get Bundle Id of your app iOS UIA automation

You’d use: [[NSBundle mainBundle] bundleIdentifier] + mainBundle “[r]eturns the NSBundle object that corresponds to the directory where the current application executable is located.” and hence will return an NSBundle object for the application bundle. [- bundleIdentifier] Returns “[t]he receiver’s bundle identifier, which is defined by the CFBundleIdentifier key in the bundle’s information property list.”

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

instruments -t /Developer/Platforms/iPhoneOS.platform/Developer/Library/Instruments/\ PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate \ <full_path_to_application> -e UIASCRIPT <path_to_script.js> \ -e UIARESULTSPATH <output_results_path> for xcode >= 4.5 instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/\ AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate \ <full_path_to_application> -e UIASCRIPT <path_to_script.js> \ -e UIARESULTSPATH <output_results_path> for xcode >= 6.1 instruments -w <device ID> -t \ /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/\ AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate \ <full_path_to_application> -e UIASCRIPT <path_to_script.js> \ -e UIARESULTSPATH <output_results_path> There a few important … Read more

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

There’s definitely some confusion about these two properties. I myself fell into that very same trap, but research and experimentation with VoiceOver and UI Automation testing showed there is a clear difference. accessibilityLabel This is the value that’s read by VoiceOver to the end-user, or exposed through other accessibility tools. As such, this should be … Read more

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

tl;dr At Pivotal we wrote Cedar because we use and love Rspec on our Ruby projects. Cedar isn’t meant to replace or compete with OCUnit; it’s meant to bring the possibility of BDD-style testing to Objective C, just as Rspec pioneered BDD-style testing in Ruby, but hasn’t eliminated Test::Unit. Choosing one or the other is … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)