SlideShare une entreprise Scribd logo
1  sur  10
Unit Testing & UI
             Automation for
            iPhone/iPad Apps
Marco
Ferrari
(GetConnected
Srl)
marco.ferrari@getconnected.it
Chi sono e cosa faccio
• iPhone/iPad
developer
in
GetConnected
Srl

  (www.getconnected.it)
  • Società
di
consulenza
e
sviluppo
soAware
in
ambito
web
e
mobile
• ProgeC
a
cui
ho
lavorato:
  • PosEno
(www.posEnoapp.com):
50K+
download
nel
mondo
  • LocomoEmes:
45K+
download
in
Italia

  • Varie
app
iPhone
e
iPad
per
aziende
nel
campo
finanziario,
della
moda
e
di
e‐
     commerce

• Mopapp.com:
business
analyEcs
per
app
mobile
Mopapp.com
  analisi delle
   vendite e
download di app
 mobile iPhone,
Android, WP7 e
  BlackBerry;
  analisi ads e
    reviews
Agenda
Come
possiamo
testare
e
rendere
più
stabili
le
proprie
app

iPhone?


   •
Unit
TesEng
   •
Creazione
di
un
target
test
in
Xcode
   •
UIAutomaEon
   •
AutomaEon
tesEng
con
Instruments
Unit Test
Tramite
Xcode
è
possibile
creare
dei
target
di
test.
Apple
divide
gli
Unit
Test
in
due
categorie:

     • Logic
Test
     • Applica9on
Test

Official
reference:
hp://developer.apple.com/library/ios/#documentaEon/Xcode/Conceptual/
iphone_development/135‐Unit_TesEng_ApplicaEons/unit_tesEng_applicaEons.html
Logic Test
• UElizzaE
per
verificare
la
correezza
funzionale
del
codice.
• Testano
piccole
par.
dell’applica.vo
con
granularità
molto

   fine.
• Usa.
per
testare
la
logica
di
specifiche
funzioni
(es.
Check

   corre?ezza
di
campi
‐
Parsing
di
files
‐
Stress
test).
• Le
funzioni
scrie
per
questo
Epo
di
test
sono
“applica.on

   independent”,
quindi
vengono
eseguite
solo
durante
la
build.
Application Test
• Test
per
controllare
le
funzionalità
dell’applicaEvo
durante

   l’esecuzione.
• UElizzaE
per
verificare
aspeC
legaE
al
device
fisico
(es.

   uElizzo
di
sensori
come
GPS,
accelerometro,
inizializzazione
di

   parametri
all’avvio
dell’app).
• Al
contrario
dei
logic
test,
quesE
sono
eseguibili
solamente

   sul
device.
UIAutomation
• Permee
di
simulare
l’interazione
utente‐app.
• Tramite
la
definizione
di
uno
script
javascript,
si
eseguono

   step‐by‐step
le
azioni
da
simulare.
• UEle
per
replicare
azioni
ripeEEve
che
risultano
“noiose”
e

   costose
in
termini
di
tempo.
   • es:
eseguire
100
o
1000
volte
un’operazione
per
vedere
se

       ci
sono
memory
leak
o
crash
• Si
integra
direamente
con
Intruments
di
Xcode.
hp://developer.apple.com/library/ios/#documentaEon/DeveloperTools/
Reference/UIAutomaEonRef/_index.html
Rappresenta
un

contenitore

                                UIAutomation
dell’intero

ambiente:
App‐iOs‐
Device




Livello
applicaEvo
per

accedere
ai

componenE
grafici

dell’app




                          Window
dell’app
che

                          voglio
testare
e
da
cui

                          recupero
i
riferimenE

                          ai
componenE
che

                          sono
visualizzaE
Domande?
GetConnected
srl       Marco
Ferrari
Tel:
051/5870535       marco.ferrari@getconnected.it
www.getconnected.it
info@getconnected.it

Contenu connexe

En vedette

Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

En vedette (20)

Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 

Presentazione whymca marco_ferrari

Notes de l'éditeur

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \n
  7. \n
  8. \n
  9. \n
  10. \n