01/04 - hello nscoder - automation tests
DESCRIPTION
Automation / User Interface TestingTRANSCRIPT
Hello NSCoder IUI Testing con UIAutomation
@ismaeldm
[NSCoderBCN event:@”Hello NSCoder” date:28/05/11]
UIAutomation
iOS 4.0+
UIKit
Instruments
Javascript
Accessibility
[NSCoderBCN event:@”Hello NSCoder” date:28/05/11]
UIATableView
UIATabBar
UIANavigationBar
UIASegmentedControl
vs.UIAutomation UIKit
[NSCoderBCN event:@”Hello NSCoder” date:28/05/11]
Instruments
[NSCoderBCN event:@”Hello NSCoder” date:28/05/11]
UIATarget.localtarget().frontMostApp().mainWindow().tableViews()[0].cells()[1]
Javascript
UIATarget.localtarget()
.frontMostApp()
.mainWindow()
.tableViews()[0]
.cells()[1]
[NSCoderBCN event:@”Hello NSCoder” date:28/05/11]
UIAElementUIAButton
UIAKeyboard
UIAPageIndicator
UIAPicker
UIAScrollView
UIAStatusBar
UIATextField
UIAWebView
UIA . . .
name
value
elements
parent
staticTexts
scrollViews
tableViews
images
[NSCoderBCN event:@”Hello NSCoder” date:28/05/11]
UIAElementUIAButton
UIAKeyboard
UIAPageIndicator
UIAPicker
UIAScrollView
UIAStatusBar
UIATextField
UIAWebView
UIA . . .
tap
doubletap
scrollToVisible
touchAndHold
twoFingerTap
isEnabled
logElementTree
isValid
[NSCoderBCN event:@”Hello NSCoder” date:28/05/11]
UIAElement.logElementTree()
[NSCoderBCN event:@”Hello NSCoder” date:28/05/11]
UIALogger
logStart
logPass
logIssue
logFail
logDebug
logMessage
logWarning
logError
[NSCoderBCN event:@”Hello NSCoder” date:28/05/11]
Accessibility
[NSCoderBCN event:@”Hello NSCoder” date:28/05/11]
Demo
Título Navigation Bar
Descripción en vista detalle
Posición vertical de imagen
[NSCoderBCN event:@”Hello NSCoder” date:28/05/11]
Enlaces de interés
UIAutomation Reference Collection
Instruments User Guide
WWDC 2010. Session 306
http://oreil.ly/UIAutomationAtOReilly
http://bit.ly/UIAutomationByAlexVollmer