Testing The Testers

33 %
67 %
Information about Testing The Testers

Published on September 8, 2009

Author: ted.husted

Source: slideshare.net


The Yahoo UI (YUI) Library is well known for its high quality code. One of its secrets is YUI Test, a testing framework for browser-based JavaScript solutions. QUnit is the unit testrunner for the jQuery project, another high quality library. If you are ready to unit test your own JavaScript code, which is the better choice : YUI Unit orQUnit?

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://dev.jquery. com/browser

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/

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/

f: cd "F:optselenium-remote-control-1.0-beta-2selenium-server-1.0- beta-2" java -jar selenium-server.jar

Please complete an evaluation.


Add a comment

Related presentations

Presentación que realice en el Evento Nacional de Gobierno Abierto, realizado los ...

In this presentation we will describe our experience developing with a highly dyna...

Presentation to the LITA Forum 7th November 2014 Albuquerque, NM

Un recorrido por los cambios que nos generará el wearabletech en el futuro

Um paralelo entre as novidades & mercado em Wearable Computing e Tecnologias Assis...

Microsoft finally joins the smartwatch and fitness tracker game by introducing the...

Related pages

StickyMinds | Testing Testers

You don't wait until the day before a software release to test the product. Testing software is a complex process, involving systematic investigation and ...
Read more

Testing the Testers – Round Robin Product Verification

Behind TCO Certified part 2: Equally important to the third party product testing of TCO Certified is ensuring consistency in test methods and results.
Read more

Testers | Contract Testing Inc.

Being a product tester is a fun and rewarding way to earn cash for your opinion about food, beverage and household care products. It’s easy to do ...
Read more

Frequently Asked Questions from User Testers

Review the frequently asked questions about being a user tester with UserTesting.
Read more

The end of the tester? - Testing Services Blog

It’s hard to believe it but the end of “the tester” was discussed at the major US conference STARWest recently. Indeed, it has been predicted that ...
Read more

Taste Testing | FPI Testers

Read the latest FPI Testers News. News & Notices. I like going into a store and seeing something I thought was going to be a success!- Sharon E., East ...
Read more

TestFlight Beta Testing (Optional) - Apple Developer Tools

TestFlight Beta Testing (Optional) With TestFlight beta testing, you can distribute prerelease builds of your app to testers to collect feedback ...
Read more

Game testing - Wikipedia, the free encyclopedia

Game testing, a subset of game development, is a software testing process for quality control of video games. The primary function of game testing is the ...
Read more

Earn Money for User Testing

Be a user tester with UserTesting and you can get paid to use websites and apps as you think out loud.
Read more