Question

In: Computer Science

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.

Solutions

Expert Solution

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!!!!!!!!----------


Related Solutions

The sales prices of homes (in dollars) from a random sample of 10 zip codes in...
The sales prices of homes (in dollars) from a random sample of 10 zip codes in the United States are recorded in the following table. At the 0.10 level of significance, is there evidence of a difference in the mean selling price for homes between 2001 and 2002? ii.Determine the p-value in (i) and interpret its meaning. Town 2001 2002 Alexandria 245795 293266 Boston 391750 408803 Decatur 205270 227561 Kirkland 326524 333569 New York 545363 531098 Philadelphia 185736 197874 Phoenix...
1) Define the following:
Standardization, titrant, primary standard, acid/base indicators, indicator range, end point, equivalence point,...
1) Define the following:
Standardization, titrant, primary standard, acid/base indicators, indicator range, end point, equivalence point, titration curve, buffer solution. 
 2) What are the requirements for a primary standard? 
 3) Write the transition range and color change for the following indicators: Phenolphthalein, 
bromocresol green, methyl orange. 
 5) What is the aim of standardization? 
 6) What is the difference between primary standard and standard solution? 
 7) Define and compare end-point and equivalence point. 
 8) Why the weak acids cannot be used...
Could you define the following terms and give an example? cases variables statistics data
Could you define the following terms and give an example? cases variables statistics data
1. Define a regular expression for validating each of the following: a. A U.S. zip code,...
1. Define a regular expression for validating each of the following: a. A U.S. zip code, which must have five digits, followed by an optional hyphen and four digits. b. A telephone number in the format (aaa) nnn-nnnn, where aaa represents the area code and the ns represent digits. c. A date in the form of day-month-year, where the month is a three-letter code and the year is four digits. A hyphen must separate the day and month and year...
Define the term “relevant range.” Why is it important to managers? Give examples.
Define the term “relevant range.” Why is it important to managers? Give examples.
a) Define the determinants of duration. b) In which cases is duration sufficient to give us...
a) Define the determinants of duration. b) In which cases is duration sufficient to give us an accurate result of a bond price alteration? Why?
define rules of coding cardiovascular services when codes from the medicine section are used?
define rules of coding cardiovascular services when codes from the medicine section are used?
Define the sample space and the type for the sample space for the following cases. To...
Define the sample space and the type for the sample space for the following cases. To get simpler expressions, you can prefer the set notation if needed. For questions requiring a plot, provide the sample space by using Cartesian Coordinate system. (a) My computer mouse needs a battery to function. I buy a battery and it lasts X amount of time. Then I install a new battery into the mouse. If Y represents the time that the mouse is ON,...
Would the glucose test be suitable for analyzing the following samples? Which of the three unknown...
Would the glucose test be suitable for analyzing the following samples? Which of the three unknown enzyme treatments would give positive results? Explain your answers. the amount of glucose present in a fruit the amount of carbohydrates in a beverage sweetened with high fructose corn syrup the number of monosaccharides present in a bacterial sample
Define and give unique example for the following term: (Please do not copy from textbook it...
Define and give unique example for the following term: (Please do not copy from textbook it needs to be in your own words) Opportunity Cost Positive and normative statments Production possibilities frontier Productive efficiency
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT