Download - 01/04 - Hello NSCoder - Automation Tests
![Page 1: 01/04 - Hello NSCoder - Automation Tests](https://reader035.vdocuments.site/reader035/viewer/2022062616/549296c0b47959384d8b464d/html5/thumbnails/1.jpg)
Hello NSCoder IUI Testing con UIAutomation
@ismaeldm
![Page 2: 01/04 - Hello NSCoder - Automation Tests](https://reader035.vdocuments.site/reader035/viewer/2022062616/549296c0b47959384d8b464d/html5/thumbnails/2.jpg)
[NSCoderBCN event:@”Hello NSCoder” date:28/05/11]
UIAutomation
iOS 4.0+
UIKit
Instruments
Javascript
Accessibility
![Page 3: 01/04 - Hello NSCoder - Automation Tests](https://reader035.vdocuments.site/reader035/viewer/2022062616/549296c0b47959384d8b464d/html5/thumbnails/3.jpg)
[NSCoderBCN event:@”Hello NSCoder” date:28/05/11]
UIATableView
UIATabBar
UIANavigationBar
UIASegmentedControl
vs.UIAutomation UIKit
![Page 4: 01/04 - Hello NSCoder - Automation Tests](https://reader035.vdocuments.site/reader035/viewer/2022062616/549296c0b47959384d8b464d/html5/thumbnails/4.jpg)
[NSCoderBCN event:@”Hello NSCoder” date:28/05/11]
Instruments
![Page 5: 01/04 - Hello NSCoder - Automation Tests](https://reader035.vdocuments.site/reader035/viewer/2022062616/549296c0b47959384d8b464d/html5/thumbnails/5.jpg)
[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]
![Page 6: 01/04 - Hello NSCoder - Automation Tests](https://reader035.vdocuments.site/reader035/viewer/2022062616/549296c0b47959384d8b464d/html5/thumbnails/6.jpg)
[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
![Page 7: 01/04 - Hello NSCoder - Automation Tests](https://reader035.vdocuments.site/reader035/viewer/2022062616/549296c0b47959384d8b464d/html5/thumbnails/7.jpg)
[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
![Page 8: 01/04 - Hello NSCoder - Automation Tests](https://reader035.vdocuments.site/reader035/viewer/2022062616/549296c0b47959384d8b464d/html5/thumbnails/8.jpg)
[NSCoderBCN event:@”Hello NSCoder” date:28/05/11]
UIAElement.logElementTree()
![Page 9: 01/04 - Hello NSCoder - Automation Tests](https://reader035.vdocuments.site/reader035/viewer/2022062616/549296c0b47959384d8b464d/html5/thumbnails/9.jpg)
[NSCoderBCN event:@”Hello NSCoder” date:28/05/11]
UIALogger
logStart
logPass
logIssue
logFail
logDebug
logMessage
logWarning
logError
![Page 10: 01/04 - Hello NSCoder - Automation Tests](https://reader035.vdocuments.site/reader035/viewer/2022062616/549296c0b47959384d8b464d/html5/thumbnails/10.jpg)
[NSCoderBCN event:@”Hello NSCoder” date:28/05/11]
Accessibility
![Page 11: 01/04 - Hello NSCoder - Automation Tests](https://reader035.vdocuments.site/reader035/viewer/2022062616/549296c0b47959384d8b464d/html5/thumbnails/11.jpg)
[NSCoderBCN event:@”Hello NSCoder” date:28/05/11]
Demo
Título Navigation Bar
Descripción en vista detalle
Posición vertical de imagen
![Page 12: 01/04 - Hello NSCoder - Automation Tests](https://reader035.vdocuments.site/reader035/viewer/2022062616/549296c0b47959384d8b464d/html5/thumbnails/12.jpg)
[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