SlideShare una empresa de Scribd logo
1 de 12
Descargar para leer sin conexión
Hello NSCoder I
  UI Testing con UIAutomation
          @ismaeldm
UIAutomation
   iOS 4.0+

     UIKit

  Instruments

   Javascript

  Accessibility

                  [NSCoderBCN event:@”Hello NSCoder” date:28/05/11]
UIAutomation vs. UIKit

        UIATabBar

       UIATableView

      UIANavigationBar

    UIASegmentedControl



                      [NSCoderBCN event:@”Hello NSCoder” date:28/05/11]
Instruments




         [NSCoderBCN event:@”Hello NSCoder” date:28/05/11]
Javascript
UIATarget.localtarget().frontMostApp().mainWindow().tableViews()[0].cells()[1]




                            UIATarget.localtarget()

                                     .frontMostApp()

                                       .mainWindow()

                               .tableViews()[0]

                                      .cells()[1]


                                                   [NSCoderBCN event:@”Hello NSCoder” date:28/05/11]
UIAElement
UIAButton                                              name
UIAKeyboard                                             value
UIAPageIndicator                                     parent
UIAPicker
                                               elements
UIAScrollView
                                            staticTexts
UIAStatusBar
                                                    images
UIATextField
UIAWebView                                scrollViews

UIA . . .                                  tableViews
                            [NSCoderBCN event:@”Hello NSCoder” date:28/05/11]
UIAElement
UIAButton                                                   tap
UIAKeyboard                                  doubletap
UIAPageIndicator                  touchAndHold
UIAPicker
                                   scrollToVisible
UIAScrollView
                                     twoFingerTap
UIAStatusBar
                                                     isValid
UIATextField
UIAWebView                                     isEnabled

UIA . . .                        logElementTree
                            [NSCoderBCN event:@”Hello NSCoder” date:28/05/11]
UIAElement.logElementTree()




                  [NSCoderBCN event:@”Hello NSCoder” date:28/05/11]
UIALogger


logStart           logDebug
logPass           logMessage
logIssue          logWarning
logFail             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



                                        [NSCoderBCN event:@”Hello NSCoder” date:28/05/11]

Más contenido relacionado

Destacado

Публічний звіт ІАЦ "Громадський Простір" - 2010 рік
Публічний звіт ІАЦ "Громадський Простір" - 2010 рікПублічний звіт ІАЦ "Громадський Простір" - 2010 рік
Публічний звіт ІАЦ "Громадський Простір" - 2010 рікProstirUA
 
Introduction to consciousness
Introduction to consciousnessIntroduction to consciousness
Introduction to consciousnessLance Jones
 
Using social promotions to create social excitement
Using social promotions to create social excitementUsing social promotions to create social excitement
Using social promotions to create social excitementEric John Ellis, MA
 
Using Social Media to Drive Business Objectives
Using Social Media to Drive Business ObjectivesUsing Social Media to Drive Business Objectives
Using Social Media to Drive Business ObjectivesEric John Ellis, MA
 
Unmarried & Unnoticed: The Audience You Can't Afford To Keep Missing
Unmarried & Unnoticed: The Audience You Can't Afford To Keep MissingUnmarried & Unnoticed: The Audience You Can't Afford To Keep Missing
Unmarried & Unnoticed: The Audience You Can't Afford To Keep MissingCatholicMatch.com
 
01/01 - Hello NSCoder - Introducción
01/01 - Hello NSCoder - Introducción01/01 - Hello NSCoder - Introducción
01/01 - Hello NSCoder - Introducciónnscoder_bcn
 
Mattra Company Profile
Mattra Company ProfileMattra Company Profile
Mattra Company ProfileAizley Shahar
 

Destacado (14)

Публічний звіт ІАЦ "Громадський Простір" - 2010 рік
Публічний звіт ІАЦ "Громадський Простір" - 2010 рікПублічний звіт ІАЦ "Громадський Простір" - 2010 рік
Публічний звіт ІАЦ "Громадський Простір" - 2010 рік
 
Quiz
QuizQuiz
Quiz
 
Introduction to consciousness
Introduction to consciousnessIntroduction to consciousness
Introduction to consciousness
 
Quiz
QuizQuiz
Quiz
 
Social media basics_032813
Social media basics_032813Social media basics_032813
Social media basics_032813
 
1[1]
1[1]1[1]
1[1]
 
Ch04 eec3
Ch04 eec3Ch04 eec3
Ch04 eec3
 
Using social promotions to create social excitement
Using social promotions to create social excitementUsing social promotions to create social excitement
Using social promotions to create social excitement
 
Using Social Media to Drive Business Objectives
Using Social Media to Drive Business ObjectivesUsing Social Media to Drive Business Objectives
Using Social Media to Drive Business Objectives
 
CD analysis
CD analysisCD analysis
CD analysis
 
Unmarried & Unnoticed: The Audience You Can't Afford To Keep Missing
Unmarried & Unnoticed: The Audience You Can't Afford To Keep MissingUnmarried & Unnoticed: The Audience You Can't Afford To Keep Missing
Unmarried & Unnoticed: The Audience You Can't Afford To Keep Missing
 
01/01 - Hello NSCoder - Introducción
01/01 - Hello NSCoder - Introducción01/01 - Hello NSCoder - Introducción
01/01 - Hello NSCoder - Introducción
 
Social Media 101
Social Media 101Social Media 101
Social Media 101
 
Mattra Company Profile
Mattra Company ProfileMattra Company Profile
Mattra Company Profile
 

Último

How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 

Último (20)

How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 

01/04 - Hello NSCoder - Automation Tests

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