Thursday, March 6, 2014

Test Cases for Sign in and Sign up.

1. Username
a. Requirements Check
- Check with requirements if special character could be used for username else Special character keys in textfield should be disabled i.e. if user taps on any special character key in keyboard no operation should be performed (dead key). If special character keys are not disabled then "Special characters are not allowed" alert message has to be displayed when used as username.
- Check with requirement for minimum number of characters allowed for username. If user enters less than the minimum number of character then proper alert message has to be displayed.
- Check if username is case sensitive or case insensitive. If its case sensitive then if 1 person has a username 'Christ' then if another person signs up using 'cHrist', alert message has to be displayed.
- Check with requirements if 'space' could be used for username. 

b. Test cases 
- Use username which already exists.
- Don't enter any character in username field.
- Use other language character such as Arabic or Chinese.
- Use hidden special characters. 
Ex : If u tap and hold character L in keyboard you would get a special character. If special characters are disabled as per requirements then developers should make sure to disable hidden special characters also. Try experimenting with different hidden keys :)
- Test for Case sensitive
- Use less than minimum number of character.
- Use more than maximum number of characters.
- Use space key in-between letters
- Copy paste a special character from Note or Safari.
- Finally a positive test case use correct username :)

2. Password 
a. Requirements Check.
- Check with the requirements for minimum character and maximum character which could be used for password field. Mostly it would be 6 for min and 32 for maximum. 
- Password field should be shown in Asterisk (****) as you type.  

b. Test Cases
- Use less than minimum number of character.
- Use more than maximum number of characters.
- Copy text to password field (Shouldn't work) 
- Use special characters, numbers and letters.

3. Email Address
a. Requirements 
- Check with minimum and maximum number of characters which could be used for email address.
- Only letters numbers period and underscore should be allowed for Sign up. Its better for developers to disable rest all keys in keyboard.
- Email Address should always start with letter.

b. Test Cases
- Use special character like @! as email address.
- Use wrong email address.
- Use valid Email Address

4. Others 
- Forgot password feature should be used. If customer has not asked for it, insist customer to have this feature.
- Clear button should be present so as the user could clear the textfield by tapping clear button.
- It better to disable Copy and Paste option in textfield.
- Its better to have remember me check box so that it would remember the email address.
- Sign in / Sign up button should be enabled only if all textfield are filed. If requirements is such that all button should be enabled then if user taps on Sign in / Sign up button proper alert message has to be displayed.
- Appropriate alert message has to be  displayed if any error is found. Each error should have a separate alert message.