Click here to Skip to main content
15,907,493 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Write test cases as if a 5 year old will do the tests. Pin
pkfox14-May-24 10:23
professionalpkfox14-May-24 10:23 
GeneralRe: Write test cases as if a 5 year old will do the tests. Pin
trΓΈnderen14-May-24 15:11
trΓΈnderen14-May-24 15:11 
GeneralRe: Write test cases as if a 5 year old will do the tests. Pin
jmaida14-May-24 17:55
jmaida14-May-24 17:55 
GeneralRe: Write test cases as if a 5 year old will do the tests. Pin
kdmote15-May-24 3:35
kdmote15-May-24 3:35 
GeneralRe: Write test cases as if a 5 year old will do the tests. Pin
Sander Rossel14-May-24 21:26
professionalSander Rossel14-May-24 21:26 
GeneralRe: Write test cases as if a 5 year old will do the tests. Pin
Fly Gheorghe14-May-24 21:34
Fly Gheorghe14-May-24 21:34 
GeneralRe: Write test cases as if a 5 year old will do the tests. Pin
Ian Brockbank15-May-24 1:27
Ian Brockbank15-May-24 1:27 
GeneralRe: Write test cases as if a 5 year old will do the tests. Pin
BryanFazekas15-May-24 1:41
BryanFazekas15-May-24 1:41 
Maximilien wrote:
Seriously, do you know of any good white paper on how to write good test cases ?
No, but I can list what I do:

1. Write use cases. What are users supposed to do with the system? From use cases, build test plans which not only test the system but teach the testers how to use it.

1A. Ideally most test cases start with new records and build upon them. For cases where that is not feasible, construct test records. Create scripts that will insert or revert the test records. If you have to hunt for test records, do it just once.

2. If you have role-based authentication and authorization, conduct each test in #1 for each role.

3. Most applications have pre-defined choices (radio buttons, drop down lists, list boxes). Test every possible combination.

4. This one is the hardest -- make as many totally illogical choices as possible. Try to do things out of order. Paste 10,000 characters into a textbox. Enter a string of special characters only. Save while missing mandatory inputs. Basically the "five year old" part.

5. Ask the end user testers to do as many weird things as they can think of. Trust that they will think of things you will never consider.


I'm no longer surprised at how much basic error handling is NOT built into applications, e.g., the DB field is 20 characters but the text entry field is unlimited. #4 will identify things like that.
GeneralWordle 1,060 Pin
Shane010313-May-24 18:38
Shane010313-May-24 18:38 
GeneralRe: Wordle 1,060 Pin
GKP199213-May-24 18:46
professionalGKP199213-May-24 18:46 
GeneralRe: Wordle 1,060 Pin
OriginalGriff13-May-24 20:37
mveOriginalGriff13-May-24 20:37 
GeneralRe: Wordle 1,060 - 4 4 me Pin
pkfox13-May-24 20:40
professionalpkfox13-May-24 20:40 
GeneralRe: Wordle 1,060 Pin
Amarnath S13-May-24 20:41
professionalAmarnath S13-May-24 20:41 
GeneralRe: Wordle 1,060 Pin
Sandeep Mewara13-May-24 22:08
mveSandeep Mewara13-May-24 22:08 
GeneralRe: Wordle 1,060 Pin
Sander Rossel13-May-24 22:27
professionalSander Rossel13-May-24 22:27 
GeneralRe: Wordle 1,060 Pin
ChandraRam13-May-24 22:46
ChandraRam13-May-24 22:46 
GeneralRe: Wordle 1,060 Pin
Cp-Coder14-May-24 1:57
Cp-Coder14-May-24 1:57 
GeneralRe: Wordle 1,060 Pin
StarNamer@work14-May-24 3:20
professionalStarNamer@work14-May-24 3:20 
GeneralNot to beat a dead horse, but this is important. (Screen Readers) PinPopular
Jeremy Falcon13-May-24 15:27
professionalJeremy Falcon13-May-24 15:27 
GeneralRe: Not to beat a dead horse, but this is important. (Screen Readers) Pin
raddevus13-May-24 15:48
mvaraddevus13-May-24 15:48 
GeneralRe: Not to beat a dead horse, but this is important. (Screen Readers) Pin
Jeremy Falcon13-May-24 15:55
professionalJeremy Falcon13-May-24 15:55 
GeneralRe: Not to beat a dead horse, but this is important. (Screen Readers) Pin
Jeremy Falcon13-May-24 15:58
professionalJeremy Falcon13-May-24 15:58 
GeneralRe: Not to beat a dead horse, but this is important. (Screen Readers) Pin
trΓΈnderen14-May-24 14:01
trΓΈnderen14-May-24 14:01 
GeneralRe: Not to beat a dead horse, but this is important. (Screen Readers) Pin
Amarnath S13-May-24 16:47
professionalAmarnath S13-May-24 16:47 
GeneralRe: Not to beat a dead horse, but this is important. (Screen Readers) Pin
Jeremy Falcon13-May-24 17:09
professionalJeremy Falcon13-May-24 17:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.