SlideShare uma empresa Scribd logo
1 de 26
Pushing the boundaries of User Experience
Test Automation
@EuroStar 2011
JULIAN HARTY
15th October 2011
EuroStar 2011
What we want to achieve
To automatically detect (some)
issues that may adversely
affect the User Experience
2
EuroStar 2011
So what are the business problems?
• Quality-In-Use:
– UX, Cross-browser & Accessibility issues on live site
• Engineering Productivity:
– Time taken from feature-complete to live site
• Quality Engineering:
– Over-reliance on manual testing
– Existing test-automation under-performing
3
EuroStar 2011
And some UX Test Automation problems…
• Minimal existing work in Industry
–Existing tools tend to test static aspects
• Academic work appears to be unsuitable
• How to automatically measure and test UX
at all!
4
EuroStar 2011
UX = User Experience
• Dynamic, based on using the system
• We focus on the Human + Computer Interactions
5
EuroStar 2011
Using Heuristics*
1. When I navigate by tabbing I should return to
where I started in a reasonable number of
key-presses
2. Flow should be consistent through web-forms
3. Look-alike & work-alike across web browsers
4. I should not be able to bypass the security of
the site from links in the UI
* Fallible, but useful, guide/approach/practice
6
EuroStar 2011
Equivalence of input paths
Mouse
• Clicks…
Keyboard
• Keystrokes
7
New
Dropdown
Select
Send
Tab
Space
Down-arrow
Enter
Down-arrow
Down-arrow
Down-arrow
Down-arrow
Tab
EnterDesigning and Engineering Time by Steven Stow
EuroStar 2011
A real example: Information for Speakers
Mouseover; click = 2 steps 13 Tabs + 22 Tabs = 35 steps
8
EuroStar 2011
Automated exploration and discovery*
• Automating heuristic tests
–Web accessibility testing
–Fighting layout bugs
–BiDi checker
• Using Crawling tools
–Crawljax
* We’re working on complementary work on interactive
exploration and discovery
9
EuroStar 2011
Man & Machine
• Fully automated execution, human
inspection
• Interactive testing, aided by tools
10
EuroStar 2011
The moving parts…
11
crawljax End-to-end tests
Fighting-
layout-bugs
Web-
accessibility-
testing
W3C
validator
Security
checkers
Cross-
browser-
checking
Our Tests Our Tests
WebDriver
DECORATORS[1]
[1] http://en.wikipedia.org/wiki/Decorator_pattern
EuroStar 2011
DEMO
12
EuroStar 2011
Sample screenshots
13
http://adsense.google.com
http://www.google.co.in
http://www.eurostarconferences.com/Registration.aspx?type=delegate&id=4
EuroStar 2011
And what about Static Analysis?
• Don‟t overlook the value of static analysis
(but don‟t rely on it either…)
• Find ways to filter the reported results
• We‟ve created automated Accessibility
Tests, which check the contents of pages
using WCAG guidelines.
14
EuroStar 2011
Problems detected:
15
{"testName":"checkMouseEventHaveKeyboardEvent","description":
"Check that elements that have mouse actions also have keyboard actions.",
"severity":"error","elementCode":"<a href="#"
onclick="window.open('/Content/Terms-and-conditions.aspx',
'termsAndConditions','width=1000,height=600,resizable=yes,toolbars=0,menuba
r=no,scrollbars=yes,status=no'); return false;"> Click here to read terms
and conditions</a>"}
“checkTitleIsNotEmpty” for the entire page
"testName":"checkAltTextOnImage","description":
"Check that visible images have alt text",
"severity":"error","elementCode":
"<img src="/themes/Eurostar/images/ico-linkedin.png" />"
EuroStar 2011
Now what?
“Sure, Accessibility is important:
file it with the rest of the things
we should do...”
What should be done seldom gets done...
16
EuroStar 2011
3 Improvements for the price of 1
• Accessibility + Testability
– Both need to interpret the contents in the browser
– Improving one often improves the other
• Accessibility + SEO*
– Both find value in descriptive labels
17
[*] SEO: Search Engine Optimization
alt=“”
picture
Mens Black Levi 501 Jeans 32" Waist /32" Leg Excellent Condition
alt=“picture” alt=“Mens Black ...”
EuroStar 2011
Happiness
• Improved Accessibility: Users are happier
• Improved Testability: We‟re happier
• Improved SEO: Business is happier
18
EuroStar 2011
Beware of (over-)trusting test automation
• Automation as servant, not master, of our
software delivery
– Inaccurate results
– “Beware of Automation Bias” by M.L. Cumming[1]
• Automated tests and checks miss more than
they find
• Make behavior easier to assess
– Screenshots and contents of DOM to verify after tests ran
– Automated video recordings
[1] http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.91.2634&rep=rep1&type=pdf
19
EuroStar 2011
What we think we’re testing…
20
EuroStar 2011
What our automated test actually interacts with…
21
EuroStar 2011
(Some of the) things our automated tests may miss…
22
Promotions
Navigation
History
Layout,
Rendering &
Formatting
Problem
JavaScript
CSS and
HTML
EuroStar 2011
Beware of poor-quality automated 'tests'
• AssertTrue(true);
• No/Inadequate/Too many Asserts
• Poor code design
• Falsehoods (False positives / negatives)
• Focus on:
– Improving the quality of your automated tests
– Finding ways to improve the quality, & testability, of
the code being tested
23
EuroStar 2011
Increasing the signal-to-noise of test results
• Suppress unwanted „warnings‟
–C.f. static analysis tools
• Increase potency of tests
• Consider dumping ineffective tests
24
EuroStar 2011
Further reading and research
The opensource project
http://code.google.com/p/web-accessibility-testing
Finding Usability Bugs with Automated Tests
http://queue.acm.org/detail.cfm?id=1925091
Fighting Layout Bugs
http://code.google.com/p/fighting-layout-bugs/
Experiences Using Static Analysis to Find Bugs
http://www.google.com/research/pubs/pub34339.html
My blog
http://blog.bettersoftwaretesting.com/
“Beware of Automation Bias” by M.L. Cummings
http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.91.2634&rep=rep1&type=pdf
Designing and Engineering Time by Steven Stow
ISBN 978-0-321-50918-5
25
Questions now?
Questions later…
julianharty@gmail.com
jharty@ebay.com
Acknowledgements
Thanks to Bart Knaak and Jacob Hooghiemstra at
StarEast 2011 who helped me improve the material by
their comments and ideas; and to Damien Allison and
Jonas Klink my colleagues on the opensource project.

Mais conteúdo relacionado

Mais de TEST Huddle

Leveraging Visual Testing with Your Functional Tests
Leveraging Visual Testing with Your Functional TestsLeveraging Visual Testing with Your Functional Tests
Leveraging Visual Testing with Your Functional TestsTEST Huddle
 
Using Test Trees to get an Overview of Test Work
Using Test Trees to get an Overview of Test WorkUsing Test Trees to get an Overview of Test Work
Using Test Trees to get an Overview of Test WorkTEST Huddle
 
Big Data: The Magic to Attain New Heights
Big Data:  The Magic to Attain New HeightsBig Data:  The Magic to Attain New Heights
Big Data: The Magic to Attain New HeightsTEST Huddle
 
Will Robots Replace Testers?
Will Robots Replace Testers?Will Robots Replace Testers?
Will Robots Replace Testers?TEST Huddle
 
TDD For The Rest Of Us
TDD For The Rest Of UsTDD For The Rest Of Us
TDD For The Rest Of UsTEST Huddle
 
Scaling Agile with LeSS (Large Scale Scrum)
Scaling Agile with LeSS (Large Scale Scrum)Scaling Agile with LeSS (Large Scale Scrum)
Scaling Agile with LeSS (Large Scale Scrum)TEST Huddle
 
Creating Agile Test Strategies for Larger Enterprises
Creating Agile Test Strategies for Larger EnterprisesCreating Agile Test Strategies for Larger Enterprises
Creating Agile Test Strategies for Larger EnterprisesTEST Huddle
 
Is There A Risk?
Is There A Risk?Is There A Risk?
Is There A Risk?TEST Huddle
 
Are Your Tests Well-Travelled? Thoughts About Test Coverage
Are Your Tests Well-Travelled? Thoughts About Test CoverageAre Your Tests Well-Travelled? Thoughts About Test Coverage
Are Your Tests Well-Travelled? Thoughts About Test CoverageTEST Huddle
 
Growing a Company Test Community: Roles and Paths for Testers
Growing a Company Test Community: Roles and Paths for TestersGrowing a Company Test Community: Roles and Paths for Testers
Growing a Company Test Community: Roles and Paths for TestersTEST Huddle
 
Do we need testers on agile teams?
Do we need testers on agile teams?Do we need testers on agile teams?
Do we need testers on agile teams?TEST Huddle
 
How to use selenium successfully
How to use selenium successfullyHow to use selenium successfully
How to use selenium successfullyTEST Huddle
 
Testers & Teams on the Agile Fluency™ Journey
Testers & Teams on the Agile Fluency™ Journey Testers & Teams on the Agile Fluency™ Journey
Testers & Teams on the Agile Fluency™ Journey TEST Huddle
 
Practical Test Strategy Using Heuristics
Practical Test Strategy Using HeuristicsPractical Test Strategy Using Heuristics
Practical Test Strategy Using HeuristicsTEST Huddle
 
Thinking Through Your Role
Thinking Through Your RoleThinking Through Your Role
Thinking Through Your RoleTEST Huddle
 
Using Selenium 3 0
Using Selenium 3 0Using Selenium 3 0
Using Selenium 3 0TEST Huddle
 
New Model Testing: A New Test Process and Tool
New Model Testing:  A New Test Process and ToolNew Model Testing:  A New Test Process and Tool
New Model Testing: A New Test Process and ToolTEST Huddle
 
Five Digital Age Trends That Will Dramatically Impact Testing And Quality Sk...
 Five Digital Age Trends That Will Dramatically Impact Testing And Quality Sk... Five Digital Age Trends That Will Dramatically Impact Testing And Quality Sk...
Five Digital Age Trends That Will Dramatically Impact Testing And Quality Sk...TEST Huddle
 
Can virtualization transform your API lifecycle?
Can virtualization transform your API lifecycle?Can virtualization transform your API lifecycle?
Can virtualization transform your API lifecycle?TEST Huddle
 
The world class webinar series
The world class webinar seriesThe world class webinar series
The world class webinar seriesTEST Huddle
 

Mais de TEST Huddle (20)

Leveraging Visual Testing with Your Functional Tests
Leveraging Visual Testing with Your Functional TestsLeveraging Visual Testing with Your Functional Tests
Leveraging Visual Testing with Your Functional Tests
 
Using Test Trees to get an Overview of Test Work
Using Test Trees to get an Overview of Test WorkUsing Test Trees to get an Overview of Test Work
Using Test Trees to get an Overview of Test Work
 
Big Data: The Magic to Attain New Heights
Big Data:  The Magic to Attain New HeightsBig Data:  The Magic to Attain New Heights
Big Data: The Magic to Attain New Heights
 
Will Robots Replace Testers?
Will Robots Replace Testers?Will Robots Replace Testers?
Will Robots Replace Testers?
 
TDD For The Rest Of Us
TDD For The Rest Of UsTDD For The Rest Of Us
TDD For The Rest Of Us
 
Scaling Agile with LeSS (Large Scale Scrum)
Scaling Agile with LeSS (Large Scale Scrum)Scaling Agile with LeSS (Large Scale Scrum)
Scaling Agile with LeSS (Large Scale Scrum)
 
Creating Agile Test Strategies for Larger Enterprises
Creating Agile Test Strategies for Larger EnterprisesCreating Agile Test Strategies for Larger Enterprises
Creating Agile Test Strategies for Larger Enterprises
 
Is There A Risk?
Is There A Risk?Is There A Risk?
Is There A Risk?
 
Are Your Tests Well-Travelled? Thoughts About Test Coverage
Are Your Tests Well-Travelled? Thoughts About Test CoverageAre Your Tests Well-Travelled? Thoughts About Test Coverage
Are Your Tests Well-Travelled? Thoughts About Test Coverage
 
Growing a Company Test Community: Roles and Paths for Testers
Growing a Company Test Community: Roles and Paths for TestersGrowing a Company Test Community: Roles and Paths for Testers
Growing a Company Test Community: Roles and Paths for Testers
 
Do we need testers on agile teams?
Do we need testers on agile teams?Do we need testers on agile teams?
Do we need testers on agile teams?
 
How to use selenium successfully
How to use selenium successfullyHow to use selenium successfully
How to use selenium successfully
 
Testers & Teams on the Agile Fluency™ Journey
Testers & Teams on the Agile Fluency™ Journey Testers & Teams on the Agile Fluency™ Journey
Testers & Teams on the Agile Fluency™ Journey
 
Practical Test Strategy Using Heuristics
Practical Test Strategy Using HeuristicsPractical Test Strategy Using Heuristics
Practical Test Strategy Using Heuristics
 
Thinking Through Your Role
Thinking Through Your RoleThinking Through Your Role
Thinking Through Your Role
 
Using Selenium 3 0
Using Selenium 3 0Using Selenium 3 0
Using Selenium 3 0
 
New Model Testing: A New Test Process and Tool
New Model Testing:  A New Test Process and ToolNew Model Testing:  A New Test Process and Tool
New Model Testing: A New Test Process and Tool
 
Five Digital Age Trends That Will Dramatically Impact Testing And Quality Sk...
 Five Digital Age Trends That Will Dramatically Impact Testing And Quality Sk... Five Digital Age Trends That Will Dramatically Impact Testing And Quality Sk...
Five Digital Age Trends That Will Dramatically Impact Testing And Quality Sk...
 
Can virtualization transform your API lifecycle?
Can virtualization transform your API lifecycle?Can virtualization transform your API lifecycle?
Can virtualization transform your API lifecycle?
 
The world class webinar series
The world class webinar seriesThe world class webinar series
The world class webinar series
 

Último

WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
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
 
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 Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
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
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGSujit Pal
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
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
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 

Último (20)

WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
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
 
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 Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
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
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAG
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
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
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 

'Pushing The Boundaries Of User Experience Test Automation' by Julian Harty

  • 1. Pushing the boundaries of User Experience Test Automation @EuroStar 2011 JULIAN HARTY 15th October 2011
  • 2. EuroStar 2011 What we want to achieve To automatically detect (some) issues that may adversely affect the User Experience 2
  • 3. EuroStar 2011 So what are the business problems? • Quality-In-Use: – UX, Cross-browser & Accessibility issues on live site • Engineering Productivity: – Time taken from feature-complete to live site • Quality Engineering: – Over-reliance on manual testing – Existing test-automation under-performing 3
  • 4. EuroStar 2011 And some UX Test Automation problems… • Minimal existing work in Industry –Existing tools tend to test static aspects • Academic work appears to be unsuitable • How to automatically measure and test UX at all! 4
  • 5. EuroStar 2011 UX = User Experience • Dynamic, based on using the system • We focus on the Human + Computer Interactions 5
  • 6. EuroStar 2011 Using Heuristics* 1. When I navigate by tabbing I should return to where I started in a reasonable number of key-presses 2. Flow should be consistent through web-forms 3. Look-alike & work-alike across web browsers 4. I should not be able to bypass the security of the site from links in the UI * Fallible, but useful, guide/approach/practice 6
  • 7. EuroStar 2011 Equivalence of input paths Mouse • Clicks… Keyboard • Keystrokes 7 New Dropdown Select Send Tab Space Down-arrow Enter Down-arrow Down-arrow Down-arrow Down-arrow Tab EnterDesigning and Engineering Time by Steven Stow
  • 8. EuroStar 2011 A real example: Information for Speakers Mouseover; click = 2 steps 13 Tabs + 22 Tabs = 35 steps 8
  • 9. EuroStar 2011 Automated exploration and discovery* • Automating heuristic tests –Web accessibility testing –Fighting layout bugs –BiDi checker • Using Crawling tools –Crawljax * We’re working on complementary work on interactive exploration and discovery 9
  • 10. EuroStar 2011 Man & Machine • Fully automated execution, human inspection • Interactive testing, aided by tools 10
  • 11. EuroStar 2011 The moving parts… 11 crawljax End-to-end tests Fighting- layout-bugs Web- accessibility- testing W3C validator Security checkers Cross- browser- checking Our Tests Our Tests WebDriver DECORATORS[1] [1] http://en.wikipedia.org/wiki/Decorator_pattern
  • 14. EuroStar 2011 And what about Static Analysis? • Don‟t overlook the value of static analysis (but don‟t rely on it either…) • Find ways to filter the reported results • We‟ve created automated Accessibility Tests, which check the contents of pages using WCAG guidelines. 14
  • 15. EuroStar 2011 Problems detected: 15 {"testName":"checkMouseEventHaveKeyboardEvent","description": "Check that elements that have mouse actions also have keyboard actions.", "severity":"error","elementCode":"<a href="#" onclick="window.open('/Content/Terms-and-conditions.aspx', 'termsAndConditions','width=1000,height=600,resizable=yes,toolbars=0,menuba r=no,scrollbars=yes,status=no'); return false;"> Click here to read terms and conditions</a>"} “checkTitleIsNotEmpty” for the entire page "testName":"checkAltTextOnImage","description": "Check that visible images have alt text", "severity":"error","elementCode": "<img src="/themes/Eurostar/images/ico-linkedin.png" />"
  • 16. EuroStar 2011 Now what? “Sure, Accessibility is important: file it with the rest of the things we should do...” What should be done seldom gets done... 16
  • 17. EuroStar 2011 3 Improvements for the price of 1 • Accessibility + Testability – Both need to interpret the contents in the browser – Improving one often improves the other • Accessibility + SEO* – Both find value in descriptive labels 17 [*] SEO: Search Engine Optimization alt=“” picture Mens Black Levi 501 Jeans 32" Waist /32" Leg Excellent Condition alt=“picture” alt=“Mens Black ...”
  • 18. EuroStar 2011 Happiness • Improved Accessibility: Users are happier • Improved Testability: We‟re happier • Improved SEO: Business is happier 18
  • 19. EuroStar 2011 Beware of (over-)trusting test automation • Automation as servant, not master, of our software delivery – Inaccurate results – “Beware of Automation Bias” by M.L. Cumming[1] • Automated tests and checks miss more than they find • Make behavior easier to assess – Screenshots and contents of DOM to verify after tests ran – Automated video recordings [1] http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.91.2634&rep=rep1&type=pdf 19
  • 20. EuroStar 2011 What we think we’re testing… 20
  • 21. EuroStar 2011 What our automated test actually interacts with… 21
  • 22. EuroStar 2011 (Some of the) things our automated tests may miss… 22 Promotions Navigation History Layout, Rendering & Formatting Problem JavaScript CSS and HTML
  • 23. EuroStar 2011 Beware of poor-quality automated 'tests' • AssertTrue(true); • No/Inadequate/Too many Asserts • Poor code design • Falsehoods (False positives / negatives) • Focus on: – Improving the quality of your automated tests – Finding ways to improve the quality, & testability, of the code being tested 23
  • 24. EuroStar 2011 Increasing the signal-to-noise of test results • Suppress unwanted „warnings‟ –C.f. static analysis tools • Increase potency of tests • Consider dumping ineffective tests 24
  • 25. EuroStar 2011 Further reading and research The opensource project http://code.google.com/p/web-accessibility-testing Finding Usability Bugs with Automated Tests http://queue.acm.org/detail.cfm?id=1925091 Fighting Layout Bugs http://code.google.com/p/fighting-layout-bugs/ Experiences Using Static Analysis to Find Bugs http://www.google.com/research/pubs/pub34339.html My blog http://blog.bettersoftwaretesting.com/ “Beware of Automation Bias” by M.L. Cummings http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.91.2634&rep=rep1&type=pdf Designing and Engineering Time by Steven Stow ISBN 978-0-321-50918-5 25
  • 26. Questions now? Questions later… julianharty@gmail.com jharty@ebay.com Acknowledgements Thanks to Bart Knaak and Jacob Hooghiemstra at StarEast 2011 who helped me improve the material by their comments and ideas; and to Damien Allison and Jonas Klink my colleagues on the opensource project.

Notas do Editor

  1. “Could do better…”
  2. Delivery includes automated builds, testing,etcExamples of vast difference in the performance test results from various commercial performance testing products