Question

Consider a program that takes three numbers as input and prints the values of these numbers...

Consider a program that takes three numbers as input and prints the values of these
numbers in descending order. Its input is a triple of positive integers (say x, y and z)
and values are from interval [300,700]. Generate boundary value and robust test
cases.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Boundary Value Analysis is a Test case Design Technique to test with values on the boundary of a given range.

For a given range a to b, we need to check for values such as a+1, a-1, b+1 and b-1 .

Test Case to check if Program functions as Required

Pre- Requisite - The Program should take 3 Positive integers (x,y,z) in range 300-700 and display them in descending order

Test case num Action Pre-condition Expected Result Actual Result Report 1 Run the Program and take x,y,z as input from the user. The values x,y, and z should be positive and in the range of 300-700. The program should run successfully and print the values of x, y and z in descending order 2 Run the Program and take x,y,z as input from the user. Pass 1 or more negative value during input. The Program should Fail and display a user friendly message "Pls Enter positive integers in range 300-700" 3 Run the Program and take x,y,z as input from the user. Boundary value analysis Pass 299 as value for either x,y or z The Program should Fail and display a user friendly message "Pls Enter positive integers in range 300-700" 4 Run the Program and take x,y,z as input from the user. Boundary value analysis Pass 701 as value for either x,y or z The Program should Fail and display a user friendly message "Pls Enter positive integers in range 300-700" 5 Run the Program and take x,y,z as input from the user. Pass 300 as value for either x,y or z The program should run successfully and print the values of x, y and z in descending order 6 Run the Program and take x,y,z as input from the user. Pass 700 as value for either x,y or z The program should run successfully and print the values of x, y and z in descending order
Add a comment
Know the answer?
Add Answer to:
Consider a program that takes three numbers as input and prints the values of these numbers...
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT