Thursday, August 21, 2014

Very Short Blog Post: A date with test cases.

Here's a test case problem:

The requirement:

"Formatting is automatically applied to all date fields (dd/mm/yy formatted)"
 
Here are my findings after a 15 minute test session:
  • Formatting is automatically applied when entering dates as
  • 12.12.2014
  • 12th Dec 2014
  • 12 Dec 2014
  • 12 December 2014
  • 12th December 2014
  • 12-12-2014
  • 12-DEC-2014
  •   Formatting is not applied to:
  • 12.12.14
  • 12122014
  • 12th Dec 14
  • 12th December 14
  • 12/12/14

a) Did the requirement 'pass'?
b) According to some claims, it is best practice to write one positive test case and one negative test case per requirement. What would I have learned by writing and executing two test cases?
c) Some test management tools would report 100% coverage with 1 test case and if it passed, it would say that the requirement passed.
 
Maybe talking about testing in terms of test cases and of passes and fails isn't useful.

 
 
 

9 comments:

  1. I wonder who claims "it is best practice to write one positive test case and one negative test case per requirement." - if there was an "At Least" in that sentence I could relate - though from my experience on every positive case I normally find several negative ones.

    One thing is clear - A requirement which is NOT covered by at least 1 positive and one negative test cases - is definitely not covered.
    That does not come to say that a coverage of 1+1 is a full coverage.
    Nor that verifying the 1st part is useless (it may be basic but still better than none).

    A tool is just a tool - it does not come to replace your brain, just to assist.

    There is a basic flaw in Traceability coverage measurements - it can only measure how much of planned cases have passed, but has no means to measure how many cases should have been there in 1st place...
    Nor would any other tool be able to say that (on any given list of test cases - I can always add one...)
    The expected depth of coverage is something the testers / organization will define - and hopefully when new useful to regress test cases are found, these shall be recorded so it will become a learning process, improving coverage over time.

    @halperinko - Kobi Halperin

    ReplyDelete
  2. hi,

    Thank you so much for posting this. I really appreciate your work. Keep it up. Great work!

    http://kosmiktechnologies.com/selenium/

    ReplyDelete
  3. I'm getting excited about this kind of beneficial information Online Medical Assignment Help of your stuff in the future

    ReplyDelete
  4. Dissertation Guidance Provides quality Help With Operating System Assignment Online Dissertation Help for students.

    ReplyDelete
  5. An individual can find a gathering with respect to wholesalers inside the yellowish pages of one's mobile phone distribution. You ought to hone inside around the specific area you will require. Academic Paper In this circumstance, search out "Plastic Bags-From providers. I don't know whether it's simply me or if maybe every other person encountering issues with your site.

    ReplyDelete
  6. These blogs contain a lot of knowledge, thank you for sharing valuable information with us.

    ReplyDelete
  7. Useful & Amazing post.Thank you so much for sharing that useful one.Keep in blogging. CFA Audit | Fixed Assets Audit | Warehouse Audit
    Top CA firms in Chennai

    ReplyDelete
  8. Hi admin.... I have read your post.I thought it was amazing post.Keep in blogging.Thanks for sharing this informative post. Duplicate Payment Audit
    Duplicate Invoice Audit
    AP Vendor Helpdesk

    ReplyDelete