Question

Define the equivalence partitions and give suitable test cases for the following: Zip codes: Range from...

Define the equivalence partitions and give suitable test cases for the following:

  1. Zip codes: Range from 00600 to 98000 inclusive.
  1. States: AL (Alabama) to WY (Wyoming)
  1. Last Name: One through twelve characters (alphabetic, space and hyphen)
  1. User ID: Eight characters, at least two of which are not alphabetic (numeric, special characters)

For full credit, you should give one test case for each equivalence partition defined by you, even if it is possible to cover more than one partitions in one test case. Your answer should be formatted using tables similar to the example shown below. Please list the variable AND the range (a, b, c, and d above) for each table, as shown below:

Input variable name: Social Security Number:
Range 001-01-0001 to 729-99-9999 inclusive.

Partition Type

Partition description

Test cases

Valid

No. of characters =9

191672024

Invalid

No. of characters<9

No. of characters>9

176039

1815630416

Valid

001010001 <=value<=729999999

050899888

Invalid

value <001010001

value >729999999

0010000001

739999999

Note: You are not required to write a complete test suite with test id, expect and actual outputs for this assignment – just the test input value is required.

Homework Answers

Answer #1

SOLUTION-

Equivalence Partition class for the question will be...

ZIP codes:

Partition Type

Valid

Invalid

Partition description

No. of Char = 5

00600<=value<=98000

No. of characters<5

No. of characters>5

value <00600

value >98000

Test cases

56789

86596

123

123456

00459

99563

Last Name:

Partition Type

Valid

Invalid

Partition description

No. of Char = 1 to 12

value may include alphabets space and hyphen

No. of characters<1

No. of characters>12

value other than alphabets space and hyphen

Test cases

kumar

sharma k - b

kumar-sharma-gupta

kumar/

123569

etc.

User ID:

Partition Type

Valid

Invalid

Partition description

No. of Char = 8

8<=value<=8 AND includes atleast 2 numeric, special characters.

No. of characters<8

No. of characters>8

value which does not include atleast 2 numeric, special characters.

Test cases

user123@

125@um12

user1@

user123456

username


IF YOU HAVE ANY DOUBT PLEASE COMMENT DOWN BELOW I WILL SOLVE IT FOR YOU:)
----------------PLEASE RATE THE ANSWER-----------THANK YOU!!!!!!!!----------

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT