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

Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DaySri Ambati
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 

Último (20)

Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 

'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