GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Testing  >  Functional Testing
Go To First  |  Previous Question  |  Next Question 
 Functional Testing  |  Question 7 of 10    Print  
Test Text Field
How many possibilities are there to test a text field? What are they?


  
Total Answers and Comments: 6 Last Update: September 17, 2009     Asked by: pavankumarreddy 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: Valusa79
 
If my understanding is right. You can test the below conditions, which are BVA.
(If assumed the max length is 10)
1. Leave the field blank.(0)-If the requirement says the field is mandatory then this test should fail. If not should allow to leave it blank.
2. Enter any text with length max-1(9)
3. Enter any text with maximum length(10)
4. Enter any text with length max+1(11)

In Most cases ECP is not defined. But if its defined for example the requirement is A-Z,a-z and 0-9 are the only valid set.
Then you can test the below conditons:
1.It should give an error when a spl character is entered.
Depending on the priority of the the requirement. You can test different conditions like.a) having a spl char at start
b) having a spl char at the end. and etc.





Above answer was rated as good by the following members:
vani venkataraman, nidhimanoj, goksn
August 30, 2008 02:42:44   #1  
Valusa79 Member Since: August 2008   Contribution: 3    

RE: Test Text Field
If my understanding is right. You can test the below conditions which are BVA.
(If assumed the max length is 10)
1. Leave the field blank.(0)-If the requirement says the field is mandatory then this test should fail. If not should allow to leave it blank.
2. Enter any text with length max-1(9)
3. Enter any text with maximum length(10)
4. Enter any text with length max+1(11)

In Most cases ECP is not defined. But if its defined for example the requirement is A-Z a-z and 0-9 are the only valid set.
Then you can test the below conditons:
1.It should give an error when a spl character is entered.
Depending on the priority of the the requirement. You can test different conditions like.a) having a spl char at start
b) having a spl char at the end. and etc.




 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
September 08, 2008 08:05:47   #2  
srinivasulub1981 Member Since: December 2005   Contribution: 381    

RE: Test Text Field
A Text field can test as follows.

-> Leave it as empty submit and verify whether the validation message is shown
( if it's a mand field)

-> Leave it as empty submit and verify that the validation message will not be shown ( if it's a opt field)

-> Enter large data and verify how it's validating the data

-> Enter zero (0) submit the page and verify that the val message is shown if it's type of date or DOB ..etc

-> Enter special characters like !@#$ &^*()_ submit the page and verify how it's valuidating the data

-> Enter negative values submit the page and verify how it's validating

-> Enter Float values submit the page and verify how it's validating

Srinivas

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
October 13, 2008 05:29:09   #3  
B.V.Kumar Member Since: October 2008   Contribution: 2    

RE: Test Text Field
First of all one need to find the purpose of text field.whether the field is to enter text data or numeric data or alphanumeric data.Then go for BVA.This will not only save the time but also makes easy to prepare text data.

Regards
B.V.Kumar.

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
October 13, 2008 06:05:46   #4  
B.V.Kumar Member Since: October 2008   Contribution: 2    

RE: Test Text Field
First of all the tester need to find the purpuse of the text field from the requirements. Based on the requirement need to prepare test data.
There are two possilble ways to test a text field
1) Boundary Value Analysis
2) Equivalence Class Partition.

B.V.Kumar

 
Is this answer useful? Yes | NoAnswer is useful 3   Answer is not useful 0Overall Rating: +3    
August 25, 2009 09:02:58   #5  
goksn Member Since: May 2009   Contribution: 94    

RE: Test Text Field

The shortest answer in interview to this question is "It depends up on the requirement".

As a tester I need functional spec for this text field.

After getting the functional spec testers can prepare "Input field matrix" using the following techniques (but within the limit of functional spec)

BVAnalysis
Eq.Class
Knowing how many ways a field can be edited either directly or through some other field.


 
Is this answer useful? Yes | No
September 17, 2009 05:12:37   #6  
rahulskin Member Since: November 2007   Contribution: 39    

RE: Test Text Field
Writing the test cases for Text field required the Requirement specification for the Text field.
At the broad view you can write the test cases using the following details.
1) You can write test cases for BVA.
2) Test for Blank text field.
3) Enter Blank spaces in the text field.
4) Test Blank spaces + some text e.g. " ABCD".
5) Test some text + Blank spaces e.g. "ABCD ".
6) Some text + Blank spaces + Some text " ABCD "
7) Test case with Valid input.
8) Test case with Invalid input.
9) Test case using the special characters.

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape