RSS feed [root] /weblog /software_engineering /testing




login:

password:

title search:




 

Sun Feb 21 00:11:16 HKT 2010

testing



(google search) (amazon search) second
download here

Sun Feb 21 00:11:16 HKT 2010 From /weblog/software_engineering/testing

best practices


First rule - http://fishbowl.pastiche.org[..]08/10/01/nothing_is_too_trivial_to_test/

Test first/last is not important? Unit test either? What do you think? http://beust.com/weblog/archives/000477.html

* The name of the test should describe the requirement of the code
* There should be at least one test for each requirement of the code. Each possible path through of the code is a different requirement#
* Test the goal of the code, not the implementation

http://xprogramming.com/xpmag/testFirstGuidelines.htm http://www.theserverside.com[..]AppQuality&asrc=EM_NLN_761453&uid=703565 http://www.coopercode.net[..]og/2007/08/how-not-to-run-beta-test.html

A lot of links - http://it-techexperts.com/tutorials/tutorials.asp http://testingspot.net/ http://www.exampler.com[..]-links-biased-toward-exploratory-testing

The teaser: Fast, Isolated, Repeatable, Self-validating, and Timely. - http://blog.objectmentor.com[..]es/2007/08/02/not-a-task-but-an-approach http://blog.objectmentor.com/articles/2007/08/02/which-came-first

Corner cases - http://testobsessed.com[..]s/2007/02/testheuristicscheatsheetv1.pdf

One of the targets of TDD coding - http://haacked.com[..]e-code-is-about-managing-complexity.aspx

Design for unit test - http://www.theserverside.com[..]es/content/DesigntoUnitTest/article.html

Introduction to Lean project management - http://ossme.com[..]introduction-of-lean-project-management/

Push and Pull approach -
http://www.richarddurnall.com/?p=10
http://www.richarddurnall.com/?p=15
http://www.richarddurnall.com/?p=31

When not to test - http://www.junitmax.com/blog/?p=187

http://www.infoq.com/news/2009/06/love_agile_testing

Test the story, rather than the implementation - http://www.davesquared.net[..]ving-to-scenario-based-unit-testing.html

Test the configuration - http://searchsoftwarequality.techtarget.com[..]TSS10ctqa&asrc=EM_NLN_8746433&uid=703565

Feel the deep synergy of design and test constraint - http://michaelfeathers.typepad.com[..]athers_blog/2007/09/the-deep-synerg.html

(google search) (amazon search)


Sun Feb 14 21:57:11 HKT 2010 From /weblog/software_engineering/testing

junit


A nice example of convert dbunit from using junit to testng - http://www.realsolve.co.uk[..]h/blog.php?name=philzoio&mydate=20050826

redirect junit output to a file - http://www.diotalevi.com/weblog/?p=43

invokeNCopiesWithTimeout, run a test ( in runnable() ) for n times and see if it ok for multi-thread likely or not - http://binkley.blogspot.com[..]/running-n-foreground-tasks-in-java.html

Use theories to execute test with a lot difference input, probably possible for all cases - http://blog.schauderhaft.de[..]010/01/31/new-feature-of-junit-theories/ http://bloritsch.d-haven.net[..]using-junit-4-theories-to-test-contracts http://blog.schauderhaft.de/2010/02/07/junit-theories/

The other features, rule, perform some rule on test cases - http://blog.schauderhaft.de/2009/10/04/junit-rules/

(google search) (amazon search)


Fri Jan 22 23:10:32 HKT 2010 From /weblog/software_engineering/testing

concurrency


Create a thread-pool to execution concurrency - http://www.planetgeek.ch[..]how-to-find-a-concurrency-bug-with-java/

http://legalizeadulthood.wordpress.com[..]com/2009/10/14/unit-testing-concurrency/

http://merereflections.wordpress.com[..]sting-multi-threaded-code-with-easymock/

(google search) (amazon search)


Mon Jan 11 12:17:18 HKT 2010 From /weblog/software_engineering/testing

performance


By far the biggest reason I have seen for the performance discrepancy above is not due to a faulty test but due to the stress test being executed on wildly different data sets than what is in production. - http://saasinterrupted.com[..]on-flaw-in-software-performance-testing/

http://www.jayphilips.com[..]0-open-source-performance-testing-tools/

(google search) (amazon search)



Thu Dec 03 11:46:29 HKT 2009 From /weblog/software_engineering/testing

deployment


Automated deployment test on VM - http://code.dblock.org/ShowPost.aspx?id=62

(google search) (amazon search)


Tue Dec 01 11:33:05 HKT 2009 From /weblog/software_engineering/testing

reference


A lot of links - http://www.staqs.com/software_testing.html

Mindmap like testing diagram - http://www.mindmeister.com/maps/show_public/3957006

Video and Slides for GTAC - http://googletesting.blogspot.com[..]posted-by-lydia-ash-gtac-conference.html

(google search) (amazon search)


Thu Nov 26 00:56:14 HKT 2009 From /weblog/software_engineering/testing

debugger


Various discussion about debugger

Debuggers are a wasteful Timesink - http://www.artima.com/weblogs/viewpost.jsp?thread=23476
The Power of Debuggers - http://beust.com/weblog/archives/000055.html

And a lot of links - http://www.infoq.com/news/2007/10/are-ruby-debuggers-harmful

I feel the same, most of the time rely on debugger is not that nice - http://iancartwright.com/blog/2009/11/ban-debugger.html

(google search) (amazon search)


Fri Oct 30 16:42:36 HKT 2009 From /weblog/software_engineering/testing

mock


Yet other discussion of Stubs, Fakes, and Mock Objects - http://vladimirlevin.blogspot.com/2007/11/stubs-fakes-mocks.html

While reviewing this article, Marty Andrews pointed out an important insight: there are two ways to use a mock object, either as a testing technique or as a design technique, and the intended use helps shape the available choices.

http://www.onjava.com/lpt/a/4526

Someone post some arguement that using mock probably a bad idea , which look like a endless arguement... - http://jroller.com[..]xRuiz?entry=mocks_for_concrete_class_can

Alberto Savoia on Testing the Untestable, raise a point that mocking make testing more portable, it probably true, but database setup may be not that difficult to port. - http://www.artima.com/forums/flat.jsp?forum=276&thread=213402

http://gojko.net[..]ut-isolation-but-about-responsibilities/

http://blog.objectmentor.com[..]ing-the-invasion-of-dots-and-parentheses

(google search) (amazon search)


Mon Oct 19 00:54:24 HKT 2009 From /weblog/software_engineering/testing

attitude


Customer attitude will affect how the software engineering workflow a lot: http://groups.yahoo.com[..]gprog/message/7420?threaded=1&var=1&p=24

Do you think this piece of code are too simple to have test case to cover? read this - http://gojko.net[..]t-the-software-craftsmanship-conference/

(google search) (amazon search)


Thu Sep 24 01:39:55 HKT 2009 From /weblog/software_engineering/testing

tester


Being proactive! - http://xndev.blogspot.com[..]to-be-first-class-citizen-as-tester.html

(google search) (amazon search)


Wed Sep 02 01:53:05 HKT 2009 From /weblog/software_engineering/testing

classification


There is a lot of discussion about this blog - http://www.artima.com/weblogs/viewpost.jsp?thread=126923

Which talk about classification of functional test and unit test. Nice to read. You can also refer to the following article:

http://beust.com/weblog/archives/000319.html
http://www.magpiebrain.com/archives/2005/09/18/unit_tests

Checking vs. testing - http://www.developsense.com/2009/08/testing-vs-checking.html

(google search) (amazon search)


Mon Jul 06 00:35:08 HKT 2009 From /weblog/software_engineering/testing

automatic test presentation


A presentation bascially say: "any start is a good start" - http://perl.plover.com/yak/testing/samples/

Short presentation illustrate many important concept of unit test - http://www.agitar.com/downloads/TheWayOfTestivus.pdf http://en.wikipedia.org/wiki/Testivus

Argument of not doing TDD will cost more - http://blog.objectmentor.com[..]ave-time-for-tdd-but-may-not-know-it-yet

Automated test or Test automated? - http://googletesting.blogspot.com[..]automating-tests-vs-test-automation.html

IT adventures: Creating a QA process from out of thin air - http://crazy-it-adventures.blogspot.com/2009/06/createing.html

(google search) (amazon search)


Wed May 06 12:28:19 HKT 2009 From /weblog/software_engineering/testing

adhoc testing


http://blogs.siliconindia.com/PrashantChavan

How to effective use notebook with exploratory-testing - http://www.developsense.com[..]4/exploratory-testing-recording-and.html

(google search) (amazon search)


Mon Apr 06 01:25:04 HKT 2009 From /weblog/software_engineering/testing

Testometer Triangle Test


This is probably one of the most common question in software testing interview. This problem was first introduced by Myers, who was one of the first person to treat Software Testing as a different subject all together. This test check your ability to think about generating test data in a given condition.
Suppose your program accepts input as three sides of a triangle and gives output on what type of triangle is this i.e. Scalene (no sides are same), Isosceles (any two sides are same) or Equilateral (All the three sides are same). You have to come up with different test cases to test this program.
You can write your test cases here, by giving side of the triangles and evaluate your test data. Once you are done with all the test cases you can think of, check your performance. If you want to restart your test anytime, just click on the restart test button. I have not covered all the possible test cases here as idea is to give you sufficient information to get started.

http://www.testinggeek.com[..]er/154-triangle-test-in-software-testing

(google search) (amazon search)


Thu Feb 26 01:07:08 HKT 2009 From /weblog/software_engineering/testing

acceptance



Here is a more complicated framework, not looking good but still keep it here as the concept is interesting - http://sourceforge.net/projects/cubictest

The most excellent implementation for my need - http://www.concordion.org/

http://www.jamesshore.com/Blog/Five-Ways-to-Misuse-Fit.html - Don't use it as junit, "The whole point of Fit is to use HTML to speak the customer's language and fixtures to translate that language to code. "

http://jroller.com/njain/entry/is_fitnesse_ready_for_enterprise - Version control is #1 issue at that article



(google search) (amazon search)


Thu Feb 26 01:06:56 HKT 2009 From /weblog/software_engineering/testing

functional


Selenium - Here is a video show how to record script using a firefox plugin: http://wiki.openqa.org/display/SIDE/Recording+a+Test (BTW, the plugin link: http://www.openqa.org/selenium-ide/), and here is a blog mentioned how to setup a test server to run batch of script altogather: http://agiletesting.blogspot.com[..]/web-app-testing-with-python-part-2.html

WatiN, alternative of selenium - http://blog.benhall.me.uk[..]2/how-to-unit-test-watin-mbunit-and.html another person saying this is better - http://jchyip.blogspot.com/2008/03/watij-vs-selenium-rc.html

And someone work hard on make FITness and Selenium work togather, more information can be found at http://www.cornetdesign.com[..]m/2006/09/fitnesse-selenium-wrapper.html http://gojko.net[..]ng-web-tests-with-fitnesse-and-selenium/

A story of how to overcome various issues of applying selenium in acceptance testing -http://blogs.atlassian.com[..]07/08/selenium_is_the_pain_worth_it.html

http://mguillem.wordpress.com[..]9/webtest-vs-selenium-webtest-wins-13-5/

http://www.jamesshore.com/Blog/Does-It-Work-Are-We-Done.html Why functional test is important

How much resource should put in functional test? http://c2.com/cgi/wiki?TestFoodPyramid

Kent discuss about how to balance low level unit test and high level functional test - http://www.threeriversinstitute.org/WhereToTest.html

(google search) (amazon search)


Thu Dec 18 18:32:10 HKT 2008 From /weblog/software_engineering/testing

TDD


My Top 5 ways to reproduce a "Hard to Reproduce" Bug! - http://software-testing-zone.blogspot.com[..]/my-top-5-ways-to-reproduce-hard-to.html

Common TDD issue and suggested solution - http://www.agileadvisor.com[..]utomated-test-problems-address-root.html

http://biblio.gdinwiddie.com[..]om/biblio/StudiesOfTestDrivenDevelopment

http://www.notesfromatooluser.com[..]ptions-with-test-driven-development.html

(google search) (amazon search)


Fri Jul 18 09:04:24 HKT 2008 From /weblog/software_engineering/testing

test data


Suggestion of how to manage the test datas - http://jchyip.blogspot.com[..]citcon-melbourne-2008-managing-test.html

(google search) (amazon search)


Sun Jun 15 23:41:46 HKT 2008 From /weblog/software_engineering/testing

refactoring unit test


Idea of how to refactoring test cases, summary :

Refactor production code with the tests passing. This helps you determine that the production code still does what it is meant to.
Refactor test code with the tests failing. This helps you determine that the test code still does what it is meant to.

http://googletesting.blogspot.com[..]07/04/tott-refactoring-tests-in-red.html

Collections of idea of testing private methods - http://www.infoq.com/news/2008/01/private-methods-tdd-design , may be it is a signal of refactoring?

(google search) (amazon search)


Tue Jun 10 00:58:07 HKT 2008 From /weblog/software_engineering/testing

style


Use Scala closure to make test look nicer - http://www.artima.com/forums/flat.jsp?forum=106&thread=232028

(google search) (amazon search)


Sat May 03 17:56:48 HKT 2008 From /weblog/software_engineering/testing

cookbooks


Links for checklists / cookbook for software testing

http://www.codeproject.com/KB/architecture/autp5.aspx
http://www.ddj.com[..]archives/2007/05/you_are_not_don_31.html
http://testobsessed.com[..]s/2007/02/testheuristicscheatsheetv1.pdf
http://www.satisfice.com/tools/satisfice-tsm-4p.pdf

(google search) (amazon search)


Fri Feb 29 02:35:39 HKT 2008 From /weblog/software_engineering/testing/antipattern

junit


http://www.exubero.com/junit/antipatterns.html

use thread in junit - http://softwareintegrityblog.com[..]blog/2007/11/05/false-positives-in-junit

issues of try to test everything, we need to get the balance for everything, not junit specific - http://www.nearinfinity.com[..]ay?entry=unit_testing_avoiding_extremism

Hard to test something? Unreadable tests? Slow running tests? It takes too long to write a test? Some solution suggested - http://www.stephenchu.com[..]/last-d-in-tdd-means-more-than-just.html

Comment out test so that the code compile - http://martinfowler.com/bliki/TestCancer.html

A list of TDD antipattern - http://blog.james-carr.org/?p=44

And the long discussion using random in unittest - http://tech.groups.yahoo.com[..]rivendevelopment/message/20458?var=1&l=1
Here is an example of using random in unittest, it actually same for every new instance! - http://www.skizz.biz/archives/000568.html


(google search) (amazon search)


Wed Jan 02 12:19:21 HKT 2008 From /weblog/software_engineering/testing

Release Checklist


Various discussion about the checklist: http://discuss.joelonsoftware.com/default.asp?joel.3.111480 . But I think practice CI is more important: http://www.martinfowler.com/articles/continuousIntegration.html

Joey discuss on beta testing... I feel he requirement is too high for small team - http://www.joelonsoftware.com/articles/BetaTest.html

More discussion - http://www.infoq.com/news/2007/12/agile-checklists and a checklist for SCRUM http://www.infoq.com/minibooks/scrum-checklists

(google search) (amazon search)


Wed Jan 02 00:43:12 HKT 2008 From /weblog/software_engineering/testing

research


TDD in academia: a brief review - http://shareandenjoy.saff.net[..]icle-new-millenium-has-seen-growing.html

Interesting idea, write the test and see if any code at internet passed the test - http://www.javaschubla.de/2007/eclipsefast/

(google search) (amazon search)