Click here to Skip to main content
15,562,144 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
what are possible test cases for text box in the form. i mean to ask how we will do test driven development for the text box in the form . The text box is used for getting the job name.
Updated 2-May-11 3:18am
RAJI @Codeproject 2-May-11 8:13am    
test for what??
Groulien 2-May-11 8:15am    
It depends on the context in which the textbox is being used.
We need more background information as to the function of the textbox.
A textbox alone has no test cases, or does it?

1 solution

The Text Box implementation code (after all, you write test cases for the code, not for the GUI control) should accept valid inputs and reject invalid ones, possibly giving meaningfull prompts to the user.
You might write down the test case based on such a guideline and you specific requirements (e.g. 'the job name must be at least 3 characters long', 'the user must not be allowed to close the form without job name insertion', etc...).
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900