SlideShare ist ein Scribd-Unternehmen logo
1 von 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.

Weitere ähnliche Inhalte

Mehr von 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
 

Mehr von 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
 

Kürzlich hochgeladen

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
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
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
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
 
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
 
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
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
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
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
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?Antenna Manufacturer Coco
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
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
 
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?Igalia
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
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
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
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
 

Kürzlich hochgeladen (20)

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
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
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
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
 
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
 
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
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
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
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
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?
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
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
 
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?
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
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
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
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
 

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

Hinweis der Redaktion

  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