Can you give me a few sample test cases?




Q: Can you give me a few sample test cases?

A: For instance, if one of the requirements is, "The brake lights shall be on, when the brake pedal is depressed", then, based on this one requirement, I would write all of the following test cases:

Test case number "101": "Inputs:" The headlights are on. The brake pedal is depressed. "Expected result:" The brake lights are on. Verify that the brake lights are on, when the brake pedal is depressed.

Test case number "102": "Inputs:" The left turn lights are on. The brake pedal is depressed. "Expected result": The brake lights are on. Verify that the brake lights are on, when the brake pedal is depressed."

Test case number "103": "Inputs": The right turn lights are on. The brake pedal is depressed. "Expected result": The brake lights are on. Verify that the brake lights are on, when the brake pedal is depressed.

As you might have guessed, to verify this one particular requirement, one could write many-many additional test cases, but you get the idea.


______________________________________________________

Copyright 2001-2011 by Rob Davis PE. All rights are reserved. No part of

this document may be reproduced in any form whatsoever

without written permission from Rob Davis, PE.

http://www.softwaretestengineer.com

http://www.robdavispe.com