SlideShare une entreprise Scribd logo
1  sur  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.

Contenu connexe

Plus de TEST Huddle

Plus 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
 

Dernier

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Dernier (20)

Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
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
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
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
 
[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
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
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
 
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
 
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
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 

'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.

Notes de l'éditeur

  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