SlideShare a Scribd company logo
Testing the Testers

YUI Test versus QUnit


Wednesday, September 16, 2009 - 2:35-3:35p
Testing the Testers: YUI Test versus
QUnit
  Yahoo UI (YUI) Library known for quality
  code.
    YUI Test framework
  JQuery known for concise, quality code.
    QUnit testrunner.
  Ready to test your own
    YUI Unit or QUnit?
Testing the Testers: YUI Test versus
QUnit

  How to create unit tests for YUI Test and
  QUnit
  When to use YUI Test or QUnit
  How to integrate unit testing into your
  Javascript development cycle.
QUnit

 Testrunner for the jQuery project.
 Add functional/regression testing to plugins.
 Efficient JQuery-like design paradigm.
QUnit - Key Features

 Top-Level QUnit Project since May 2008
   No stable release
   Online download from Subversion
 UI Focus
 Plugin Testing
   Regression Testing
 Light-weight testrunner
 Key Contributor - Jorn Zaefferer
http://docs.jquery.com/Qunit
Ted Husted Presentation Testing The Testers Ae2009
Ted Husted Presentation Testing The Testers Ae2009
Ted Husted Presentation Testing The Testers Ae2009
Ted Husted Presentation Testing The Testers Ae2009
Ted Husted Presentation Testing The Testers Ae2009
Ted Husted Presentation Testing The Testers Ae2009
Ted Husted Presentation Testing The Testers Ae2009
Ted Husted Presentation Testing The Testers Ae2009
Ted Husted Presentation Testing The Testers Ae2009
Ted Husted Presentation Testing The Testers Ae2009
Ted Husted Presentation Testing The Testers Ae2009
http://dev.jquery.
com/browser
Ted Husted Presentation Testing The Testers Ae2009
Ted Husted Presentation Testing The Testers Ae2009
QUnit - Strengths and Weaknesses

Strengths                Weaknesses
   Bundled with JQuery     Proprietary syntax
   Used by JQuery          Lacks server support
   Concise API             Not well known
   Browser friendly        Sole contributor
QUnit - Bottom Line

  Use when coding JQuery plugins and other applications
  Good for UI tests
  Essential for regression testing
  Works well with test-driven development
  For true acceptance tests, add Selenium to the mix
QUnit - Resources

 Getting Started with JQuery QUnit
    http://www.lostechies.com/blogs/chad_myers/archive/2008/08/28/getting-started-with-jquery-qunit-for-client-side-
    javascript-testing/printerfriendly.aspx

  Unit Testing Javascript using JQuery QUnit
    http://highoncoding.com/Articles/570_Unit_Testing_JavaScript_Using_JQuery_QUnit.aspx

  Running JQuery QUnit under Continuous Integration
    http://www.lostechies.com/blogs/joshuaflanagan/archive/2008/09/18/running-jquery-qunit-tests-under-continuous-
    integration.aspx?CommentPosted=true#commentmessage

 Testing ASP.NET MVC QUnit
    http://www.bradygaster.com/post/Testing-ASPNET-MVC-with-QUnit-Part-1.aspx

 Some Qunit Tips
    http://hammett.castleproject.org/?p=300http://hammett.castleproject.org/?p=300

 Functional Testing Javascript with QUnit
    http://www.eviltester.com/index.php/2008/06/17/functional-testing-javascript-with-qunit-initial-steps/http://www.
    eviltester.com/index.php/2008/06/17/functional-testing-javascript-with-qunit-initial-steps/
YUI Test

 Testing framework for browser-based
 solutions.
 Add unit testing to JavaScript solutions.
 Derives characteristics from nUnit and jUnit.
YUI Test - Key Features

  Create test cases through simple syntax.
  Failure detection for methods that throw
  errors.
  Group related cases using test suites.
  Asynchronous tests for testing events and
  Ajax communication.
  Cross-browser DOM Event simulation.
YUI Test - Key Features

  Support for “A-Grade” Browsers
  Release 2.5.2 (2008 May)
    Since July 2007 (YUI 2.3.0)

  License – BSD
  ~16 Team Members
    Yahoo! employees and contributors
    Maintained by Nicholas C. Zakas
       http://www.nczonline.net/
Ted Husted Presentation Testing The Testers Ae2009
Ted Husted Presentation Testing The Testers Ae2009
Ted Husted Presentation Testing The Testers Ae2009
Ted Husted Presentation Testing The Testers Ae2009
Ted Husted Presentation Testing The Testers Ae2009
Ted Husted Presentation Testing The Testers Ae2009
Ted Husted Presentation Testing The Testers Ae2009
YUI Test - Strengths and Weaknesses

Strengths                     Weaknesses
   Bundled with YUI Library     Bundled with YUI Library
   Large, well-funded team      Lacks server support
   Regular releases             Community is stagnant
   Well Documented              Growth is stagnant
   3rd party IDE support
YUI Test - Bottom Line

   Good for simple event/form tests
   Needs better automation tools
   For true acceptance tests, add Selenium to the mix
Use when coding JavaScript or Ajax applications (and Test-
Driven Development)
YUI Test - Resources

  Writing Effective JavaScript Unit Tests with YUI Test
     Nicholas D. Zakas (2009 January)
    http://yuiblog.com/blog/2009/01/05/effective-tests/

 Test Driven Development with YUI Test
    Nicholas D. Zakas (2008 September)
    http://ajaxexperience.techtarget.com/assets/documents/Nicholas_Zakas_Test_Driven_Development.pdf

    (presentation)
 Writing Your First YUI Application
    Eric Miraglia (2008 May)
    http://www.insideria.com/2008/05/writing-your-first-yui-applica.html
Open QA Selenium

 Selenium is a suite of tools
 Selenium IDE
    records and runs tests
 Selenium Remote Control
    runs across multiple platforms
 Selenium Grid
    runs across multiple machines




  http://selenium.openqa.org/documentation/
Ted Husted Presentation Testing The Testers Ae2009
Ted Husted Presentation Testing The Testers Ae2009
Ted Husted Presentation Testing The Testers Ae2009
f:
cd "F:optselenium-remote-control-1.0-beta-2selenium-server-1.0-
beta-2"
java -jar selenium-server.jar
Ted Husted Presentation Testing The Testers Ae2009
Ted Husted Presentation Testing The Testers Ae2009
Please complete
 an evaluation.
Questions?

More Related Content

PDF
20170302 tryswift tasting_tests
PDF
20170529 clem kazuaki_matsuo
PDF
CookpadTechConf2018-(Mobile)TestAutomation
PDF
Introduction to Software Development
PDF
20170613 tech easy
PDF
EFL QA: Where Are We and Where Should We Go?
PDF
Go ahead outside Japan
PDF
Bdd and-testing
20170302 tryswift tasting_tests
20170529 clem kazuaki_matsuo
CookpadTechConf2018-(Mobile)TestAutomation
Introduction to Software Development
20170613 tech easy
EFL QA: Where Are We and Where Should We Go?
Go ahead outside Japan
Bdd and-testing

What's hot (14)

PPTX
UI5 supportability tools explained
PPTX
Top 5 AngularJS Tool for Application Development
PPTX
Manual Testing
PDF
Dicoding Developer Coaching #13: Android | Melakukan Testing secara Otomatis ...
PPTX
Developing Android Apps
PPTX
Advanced Strategies for Testing Responsive Web
PPTX
Choosing the Best Open Source Test Automation Tool for You
PDF
Advanced automated visual testing - DrupalCon seattle 2019
PDF
Munki at Facebook
PPTX
Android testing
PPTX
Top 5 Automation Challenges Webinar
PPT
Eclipse UI automation
PPTX
Cross Platform Devops with Visual Studio Team Services
PDF
Kristian Karl - Experiences of Test Automation at Spotify - EuroSTAR 2013
UI5 supportability tools explained
Top 5 AngularJS Tool for Application Development
Manual Testing
Dicoding Developer Coaching #13: Android | Melakukan Testing secara Otomatis ...
Developing Android Apps
Advanced Strategies for Testing Responsive Web
Choosing the Best Open Source Test Automation Tool for You
Advanced automated visual testing - DrupalCon seattle 2019
Munki at Facebook
Android testing
Top 5 Automation Challenges Webinar
Eclipse UI automation
Cross Platform Devops with Visual Studio Team Services
Kristian Karl - Experiences of Test Automation at Spotify - EuroSTAR 2013
Ad

Viewers also liked (20)

PPT
Invite5加入流程.
PPT
Chapter07
PPT
Jim Marks Twitter Deck
PDF
Participation for Interactive Narratives
PPT
PPT
KEY
技术猪是什么猪
PDF
Taylor De Jongh Qualifications Mar 2010
PDF
Product launch - de integratie tussen Marketing / Productie (opschaling) / in...
DOCX
Format makalah DDP MIPA
PPT
Teorikaunseling 090910112241-phpapp01
PPTX
Presentatie Workshop FP Advance Sept 2010 Fv
PDF
Home away
PDF
Informativo Técnico Leite 2010
PPTX
David Wei And Changhao Jiang Presentation
PPT
The distributive property
PPTX
Agile Collaboration in a Virtual World: Harnessing Social Media, Web 2.0 and ...
PDF
web信息架构与社会化
PPT
New book ch 1, sect 1
PPTX
Transmedia and Augmented Reality
Invite5加入流程.
Chapter07
Jim Marks Twitter Deck
Participation for Interactive Narratives
技术猪是什么猪
Taylor De Jongh Qualifications Mar 2010
Product launch - de integratie tussen Marketing / Productie (opschaling) / in...
Format makalah DDP MIPA
Teorikaunseling 090910112241-phpapp01
Presentatie Workshop FP Advance Sept 2010 Fv
Home away
Informativo Técnico Leite 2010
David Wei And Changhao Jiang Presentation
The distributive property
Agile Collaboration in a Virtual World: Harnessing Social Media, Web 2.0 and ...
web信息架构与社会化
New book ch 1, sect 1
Transmedia and Augmented Reality
Ad

Similar to Ted Husted Presentation Testing The Testers Ae2009 (20)

PDF
Testing Tools
ODP
Testing In Java4278
ODP
Testing In Java
PPTX
Practicing Agile in Offshore Environment by Himanshu Seth & Imran Mir
PPT
Sakai10 Selenium Workshop
PDF
Qunit tutorial
DOCX
JUnit_Guide_Expanded_Presentation[1].docx
DOCX
JUnit_Guide_Expanded_Presentation[1].docx............................
DOCX
JUnit_Guide_Expanded_Presentation[1].docx
PDF
Automated testing of JavaFX GUI components
PDF
Case study: Open Source Automation Framework using Selenium WebDriver
PPTX
How do you implement Continuous Delivery? Part 4: Automated Testing
PPTX
Testing in mule
PPTX
Jack borden jb471909_junit
PPTX
Jack borden jb471909_junit1
PDF
Lesson_06_Software_and_Automation_Testing_Frameworks.pdf
PDF
The Best Java Testing Frameworks to focus in 2021.pdf
PDF
Visual Automation Framework via Screenshot Comparison
PDF
Codeception introduction and use in Yii
PDF
Selenium 1july
Testing Tools
Testing In Java4278
Testing In Java
Practicing Agile in Offshore Environment by Himanshu Seth & Imran Mir
Sakai10 Selenium Workshop
Qunit tutorial
JUnit_Guide_Expanded_Presentation[1].docx
JUnit_Guide_Expanded_Presentation[1].docx............................
JUnit_Guide_Expanded_Presentation[1].docx
Automated testing of JavaFX GUI components
Case study: Open Source Automation Framework using Selenium WebDriver
How do you implement Continuous Delivery? Part 4: Automated Testing
Testing in mule
Jack borden jb471909_junit
Jack borden jb471909_junit1
Lesson_06_Software_and_Automation_Testing_Frameworks.pdf
The Best Java Testing Frameworks to focus in 2021.pdf
Visual Automation Framework via Screenshot Comparison
Codeception introduction and use in Yii
Selenium 1july

More from Ajax Experience 2009 (20)

PPT
Adam Peller Interoperable Ajax Tools And Mashups
PPTX
Eric Beland Ajax Load Testing Considerations
PPTX
Chanhao Jiang And David Wei Presentation Quickling Pagecache
PPT
Jason.O Keefe.Genuitec.Presentation.Final
PPTX
Jenny Donnelly
PDF
Colin Clark Accessible U Is With J Query And Infusion[1]
PPTX
Scott Isaacs Presentationajaxexperience (Final)
PPT
Sergey Ilinsky Presentation Ample Sdk
PPT
Chris Williams Presentation Dissident
PPT
Andrew Sutherland Presentation
PDF
Bill Scott Presentation
PDF
Ted Husted Presentation Testing Ajax Applications Ae2009
PDF
Ted Husted Api Doc Smackdown Ae2009
PDF
Patrick Lightbody Presentation Tae Slides
PPT
Laurens Van Den Oever Xopus Presentation
PPT
Jon Trelfa Presentation From Desktop To Web – Getting It Right
PPTX
Joe Mc Cann Tae Aria Presentation
PPT
Douglas Crockford Presentation Goodparts
PPT
Douglas Crockford Presentation Jsonsaga
PDF
Brian Le Roux Presentation Introducing Phone Gap
Adam Peller Interoperable Ajax Tools And Mashups
Eric Beland Ajax Load Testing Considerations
Chanhao Jiang And David Wei Presentation Quickling Pagecache
Jason.O Keefe.Genuitec.Presentation.Final
Jenny Donnelly
Colin Clark Accessible U Is With J Query And Infusion[1]
Scott Isaacs Presentationajaxexperience (Final)
Sergey Ilinsky Presentation Ample Sdk
Chris Williams Presentation Dissident
Andrew Sutherland Presentation
Bill Scott Presentation
Ted Husted Presentation Testing Ajax Applications Ae2009
Ted Husted Api Doc Smackdown Ae2009
Patrick Lightbody Presentation Tae Slides
Laurens Van Den Oever Xopus Presentation
Jon Trelfa Presentation From Desktop To Web – Getting It Right
Joe Mc Cann Tae Aria Presentation
Douglas Crockford Presentation Goodparts
Douglas Crockford Presentation Jsonsaga
Brian Le Roux Presentation Introducing Phone Gap

Recently uploaded (20)

PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Advanced IT Governance
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Empathic Computing: Creating Shared Understanding
PDF
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Understanding_Digital_Forensics_Presentation.pptx
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
“AI and Expert System Decision Support & Business Intelligence Systems”
Chapter 3 Spatial Domain Image Processing.pdf
Spectral efficient network and resource selection model in 5G networks
Reach Out and Touch Someone: Haptics and Empathic Computing
Review of recent advances in non-invasive hemoglobin estimation
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
NewMind AI Monthly Chronicles - July 2025
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Advanced methodologies resolving dimensionality complications for autism neur...
Mobile App Security Testing_ A Comprehensive Guide.pdf
Advanced IT Governance
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Empathic Computing: Creating Shared Understanding
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
NewMind AI Weekly Chronicles - August'25 Week I

Ted Husted Presentation Testing The Testers Ae2009

  • 1. Testing the Testers YUI Test versus QUnit Wednesday, September 16, 2009 - 2:35-3:35p
  • 2. Testing the Testers: YUI Test versus QUnit Yahoo UI (YUI) Library known for quality code. YUI Test framework JQuery known for concise, quality code. QUnit testrunner. Ready to test your own YUI Unit or QUnit?
  • 3. Testing the Testers: YUI Test versus QUnit How to create unit tests for YUI Test and QUnit When to use YUI Test or QUnit How to integrate unit testing into your Javascript development cycle.
  • 4. QUnit Testrunner for the jQuery project. Add functional/regression testing to plugins. Efficient JQuery-like design paradigm.
  • 5. QUnit - Key Features Top-Level QUnit Project since May 2008 No stable release Online download from Subversion UI Focus Plugin Testing Regression Testing Light-weight testrunner Key Contributor - Jorn Zaefferer
  • 21. QUnit - Strengths and Weaknesses Strengths Weaknesses Bundled with JQuery Proprietary syntax Used by JQuery Lacks server support Concise API Not well known Browser friendly Sole contributor
  • 22. QUnit - Bottom Line Use when coding JQuery plugins and other applications Good for UI tests Essential for regression testing Works well with test-driven development For true acceptance tests, add Selenium to the mix
  • 23. QUnit - Resources Getting Started with JQuery QUnit http://www.lostechies.com/blogs/chad_myers/archive/2008/08/28/getting-started-with-jquery-qunit-for-client-side- javascript-testing/printerfriendly.aspx Unit Testing Javascript using JQuery QUnit http://highoncoding.com/Articles/570_Unit_Testing_JavaScript_Using_JQuery_QUnit.aspx Running JQuery QUnit under Continuous Integration http://www.lostechies.com/blogs/joshuaflanagan/archive/2008/09/18/running-jquery-qunit-tests-under-continuous- integration.aspx?CommentPosted=true#commentmessage Testing ASP.NET MVC QUnit http://www.bradygaster.com/post/Testing-ASPNET-MVC-with-QUnit-Part-1.aspx Some Qunit Tips http://hammett.castleproject.org/?p=300http://hammett.castleproject.org/?p=300 Functional Testing Javascript with QUnit http://www.eviltester.com/index.php/2008/06/17/functional-testing-javascript-with-qunit-initial-steps/http://www. eviltester.com/index.php/2008/06/17/functional-testing-javascript-with-qunit-initial-steps/
  • 24. YUI Test Testing framework for browser-based solutions. Add unit testing to JavaScript solutions. Derives characteristics from nUnit and jUnit.
  • 25. YUI Test - Key Features Create test cases through simple syntax. Failure detection for methods that throw errors. Group related cases using test suites. Asynchronous tests for testing events and Ajax communication. Cross-browser DOM Event simulation.
  • 26. YUI Test - Key Features Support for “A-Grade” Browsers Release 2.5.2 (2008 May) Since July 2007 (YUI 2.3.0) License – BSD ~16 Team Members Yahoo! employees and contributors Maintained by Nicholas C. Zakas http://www.nczonline.net/
  • 34. YUI Test - Strengths and Weaknesses Strengths Weaknesses Bundled with YUI Library Bundled with YUI Library Large, well-funded team Lacks server support Regular releases Community is stagnant Well Documented Growth is stagnant 3rd party IDE support
  • 35. YUI Test - Bottom Line Good for simple event/form tests Needs better automation tools For true acceptance tests, add Selenium to the mix Use when coding JavaScript or Ajax applications (and Test- Driven Development)
  • 36. YUI Test - Resources Writing Effective JavaScript Unit Tests with YUI Test Nicholas D. Zakas (2009 January) http://yuiblog.com/blog/2009/01/05/effective-tests/ Test Driven Development with YUI Test Nicholas D. Zakas (2008 September) http://ajaxexperience.techtarget.com/assets/documents/Nicholas_Zakas_Test_Driven_Development.pdf (presentation) Writing Your First YUI Application Eric Miraglia (2008 May) http://www.insideria.com/2008/05/writing-your-first-yui-applica.html
  • 37. Open QA Selenium Selenium is a suite of tools Selenium IDE records and runs tests Selenium Remote Control runs across multiple platforms Selenium Grid runs across multiple machines http://selenium.openqa.org/documentation/
  • 44. Please complete an evaluation.