Results 1 to 8 of 8

Thread: Test cases for Text Box, Drop Down Box and email ID

  1. #1
    Contributing Member
    Join Date
    May 2006
    Answers
    78

    Test cases for Text Box, Drop Down Box and email ID

    Can anybody tell me how to write testcases for Text Box, Combo box and Email ID(format is xyz @ abc.pq.re)?

    Last edited by admin; 11-05-2012 at 06:54 AM.

  2. #2
    Junior Member
    Join Date
    Sep 2007
    Answers
    2

    Re: Test cases for Text Box, Drop Down Box and email ID

    Hi,
    You can write the test cases for the above said as different scenarios

    1. Text Box - You can write seperate TCs for entering Alphabetical characters, Alphanumeric characters, special character, numbers, to test max length of the text box....

    2. For combo box, you can write for not selecting any value, selecting a wrong combination...

    3. For email id, you can write for providing invalid ids which dont have @.....com.
    I am not very sure of writing test cases for email id.


  3. #3
    Junior Member
    Join Date
    Aug 2008
    Answers
    2

    Re: Test cases for Text Box, Drop Down Box and email ID

    Hello,
    Test case for Text Box
    1.First u have to see the FRS(Functional Requirement Specification)
    2.From the FRS we can write the test case to limit of the alpha characters or alphanumeric characters given to the textbox.
    2.We can check for the alpha characters or alpha numeric characters from the FRS.
    3.We can also check the mandatory condition for the textbox if given in the FRS.ex.For Name textbox-If condition is given that Name should not be blank.
    4.We can check the textbox is blank or not.
    5.We can write the test case for Name textbox contain numeric data or not if our textbox is NAME textbox.If Name Text box does not accept numeric data then it's valid condition otherwise invalid condition.
    Thank U


  4. #4
    Expert Member
    Join Date
    Apr 2008
    Answers
    1,859

    Re: Test cases for Text Box, Drop Down Box and email ID

    hi prachi_nd..

    if the bug is keep on repeating and the developer is not accepting the bug, just make the video recording of the bug and if u have rights and if u hard core consider the bug is valid, you can intimate to the test manager directly and also note this situation arise in some rare cases

    Thanks
    Deepasree


  5. #5
    Junior Member
    Join Date
    Feb 2009
    Answers
    1

    Re: Test cases for Text Box, Drop Down Box and email ID

    Test cases on Email-the email should be valid Email Id like
    1. abc @ some . com
    2. try some negative test without .com
    3. without @ symbol.


  6. #6
    Junior Member
    Join Date
    Mar 2010
    Answers
    1

    Re: Test cases for Text Box, Drop Down Box and email ID

    can any one send me the test cases for drop down......


  7. #7
    Junior Member
    Join Date
    Mar 2010
    Answers
    4

    Re: Test cases for Text Box, Drop Down Box and email ID

    This is an example of code for test cases of all characters in a string of a textbox or all numeric in textbox. I hope you find it helpful. It is written in visual basic .net
    public sub testcase()
    dim textcontent as string
    textcontent =textbox1.text
    ' test if string is all characters
    dim k as integher
    k=len(textcontent)
    dim i as integer
    for i=0 to k
    if isnumeric(indexof(textcontent,i)) then
    msgbox(" please enter charachters only")
    exit sub
    end if
    next
    ' test if string is all numeric
    for i=0 to k
    if not isnumeric(indexof(textcontent,i) then msgbox(" you should enter only numeric values")
    exit sub
    end if
    next
    end sub

    Last edited by eliot; 03-05-2010 at 08:04 AM.

  8. #8
    Junior Member
    Join Date
    Oct 2012
    Answers
    6

    Re: Test cases for Text Box, Drop Down Box and email ID

    hi,

    Positive test cases and nagetive test cases for email Id you can find in the below link
    Test Data for email Address field:
    Here is the list of valid and invalid email format which can be used for testing.
    Valid email id's:

    Valid Email address

    • email@domain.com
    • firstname.lastname@domain.com
    • firstname+lastname@domain.com
    • email@123.123.123.123 [Domain is valid IP address]
    • email@[123.123.123.123] {Square bracket around IP address is considered valid }
    • "email"@domain.com {Quotes around email is considered valid}
    • 1234567890@domain.com {Digits in address are valid }
    • email@domain-one.com {Dash in domain name is valid }
    • _______@domain.com {Underscore in the address field is valid }
    • email@domain.name {.name is valid Top Level Domain name }
    • email@domain.co.jp {Dot in Top Level Domain name also considered valid (use co.jp as example here)}
    • firstname-lastname@domain.com {Dash in address field is valid}
    Invalid email id's:

    plainaddress {Missing @ sign and domain}

    #@%^%#$@#$@#.com {Garbage}

    @domain.com {Missing username}

    Joe Smith { Encoded html within email is invalid }

    email.domain.com { Missing @ }

    email@domain@domain.com {Two @ sign }

    .email@domain.com {Leading dot in address is not allowed }

    email.@domain.com { Trailing dot in address is not allowed }

    email..email@domain.com { Multiple dots }

    あいうえお@domain.com { Unicode char as address }

    email @ domain.com (Joe Smith) {Text followed email is not allowed }

    email@domain {Missing top level domain (.com/.net/.org/etc) }

    email @ -domain.com {Leading dash in front of domain is invalid }

    email @ domain.web {.web is not a valid top level domain }

    email@111.222.333.44444 {Invalid IP format }

    email @ domain..com { Multiple dot in the domain portion is invalid }


    Last edited by admin; 11-05-2012 at 06:55 AM.

  9.  Sponsored Ads
    Ad


     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact