Click here to Skip to main content
14,664,097 members
Rate this:
Please Sign up or sign in to 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.
Posted
Updated 2-May-11 2:18am
v2
Comments
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

Rate this:
Please Sign up or sign in to vote.

Solution 1

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...).
   

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100