Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

You are asked to test the code for a \"phonelist\" application on a cellphone. E

ID: 3575671 • Letter: Y

Question

You are asked to test the code for a "phonelist" application on a cellphone. Each entry in the phonelist has a name, phone number, and ringtone. Given the memory constraints of the cellphone, the developers must code this application using a special flavor of embedded C. The designers have told you that up to 256 phonelist entries can be stored in the cellphone, and a further 128 entries can be stored in the phone's SIM card if there are more entries than can be stored in the cellphone itself. Using equivalence classes and boundary value analysis, derive and describe a list of test cases for the phonelist application.

Explanation / Answer

Test Cases are as below :

Test Cases for Name :

For name we can go for 256 letters to be valid.

So here are the classes for that : 0,1-256,257-500

Test Scenario #

INPUT

SYSTEM

1

Input name with 0 letter

Invalid

2

Input name between 1-255 letters

Valid

3

Input name between 256-500 Letters

Invalid

4

Input name with Minimum 0 letter

Invalid

5

Input name with Minimum 1 and maximum 255 letters

Valid

6

Input name with minimum 257 and maximum 500 letters

Invalid

Test cases for Phone numbers :

Phone numbers can not be more than 10 digits and can not be 0.

So that here we can create classes like 0,10,11

Test Scenario #

INPUT

SYSTEM

1

Input number 0

Invalid

2

Input 10 numbers

Valid

3

Input 11 numbers

Invalid

4

Input minimum 0

Invalid

5

Input above minimum 2

Invalid

6

Input maximum 11

Invalid

7

Input below maximum 10

Valid

Test Cases for number of entries :

Here we have 256 entries allowed in cellphone and 128 entries in SIM card.

So classes can be <256 – cellphone,>256-384 – SIM card,>384 – cellphone

Test Scenario #

INPUT

SYSTEM

1

Input entry number 254

Store in cellphone

2

Input entry number 257

Store in SIM card

3

Input entry number 383

Store in SIM card

4

Input entry number 385

Store in cellphone

Test Scenario #

INPUT

SYSTEM

1

Input name with 0 letter

Invalid

2

Input name between 1-255 letters

Valid

3

Input name between 256-500 Letters

Invalid

4

Input name with Minimum 0 letter

Invalid

5

Input name with Minimum 1 and maximum 255 letters

Valid

6

Input name with minimum 257 and maximum 500 letters

Invalid

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote