Can any one write test cases on UID & PWD filed.

Field UID:PWD: & OK buttons
requirement: UID should accept alphanumeric value only with special char such as @ and periods(.) only, length 4 to 8 char
PWD : length 4 to 8 char.

Questions by yogesh hattekar

Showing Answers 1 - 9 of 9 Answers

Field UID:PWD: & OK buttons
requirement: UID should accept alphanumeric value only with special char such as @ and periods(.) only, length 4 to 8 char PWD : length 4 to 8 char.


In terms of component based test design we can
create a component for the test step which wil take user input parameters "UID", "PWD", "ButtontoClick"

Following are the data set which can be used to
fulfill the given requirement
Note : Following are not the only combination which can be used to test. there can be many but these are the most important (e.g are real values does not contain description)
































































UID PWD ButtontoClick Expected Result
user password OK Pass
username password OK Pass
user.nam password OK Pass
user.name password OK Fail
user@nam password OK Pass
user@name password OK Fail
password OK Fail
@@@ password OK Pass
… password OK Pass
usernames password OK Fail
user pass OK Pass
username pas OK Fail
user.nam passwords OK Fail
user.name pass OK Fail
user@nam OK Fail
user@name passw OK Fail
passs OK Fail
@@@ passwords OK Fail
… pa OK Fail
usernames pass OK Fail


  Was this answer useful?  Yes

sowjanya g

  • Sep 19th, 2011
 

for example for user id field is taking alphanumerics in lower case from 4-16 characters long and the password field is taking alphabets in lower case from 4-8 characters long.so now we have to prepare test scenario's for UID and PWD test scenario1
1.verify user-id field:BVA(boundary value analysis)
min 4chars pass max 16chars pass
min-1 3chars fail max-1 15chars pass
min+1 5chars pass max+1 17chars fail

2.E.C.P(equi valance class class partitions) for type of user-id
valid invalid
alphanumerics in lower case alphanumerics in upper case
special chars
blank field

test scenario 2
verify pswd field
1.BVA:
min 4chrs pass max 8chrs pass
min-1 3chrs fail max-1 7chrs pass
min+1 5chrs pass max+1 9chrs fail

2.E.C.P

valid invalid
alphanumerics in lowercase alphabets in uppercase
numeric
special chars
blank fields

by using above test scenario we can easily prepare test cases for UID & PSWD

1.step no description test data expected o/p
1 focus to user id field and enter 4-16chars alphanumerics allows
test data in lower case
2 focus to pswd field and enter 4-8 alphabets in lower case allows
test data

in the same way we can give some more steps for negative testing

thank u all ...

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions