Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The Boundary value analysis technique checks the program with input values that are on or close to boundary values. The Boundary value analysis is

 

The Boundary value analysis technique checks the program with input values that are on or close to boundary values. The Boundary value analysis is best suited when input values are expected to be within some domain. We would like to go beyond the legitimate domain of input values. This is what we call Robustness testing. Here, we also select invalid values and see the responses of the program. Invalid values are also important to check for the behaviour of the program. Consider a program termed as "minimum' that reads a set of elements and prints the smallest of entered elements The elements are required to be taken from the user. Do not ask for the number of elements from the user. The elements are required to be split by a space. The elements should be added to the list only if they are integers, not alphanumeric and are not special characters. Make sure to use exception handling to handle different test cases. You are not allowed to use the inbuilt function (min) from Python library. Develop your own logic to find the smallest of entered elements. Concentrate on some typical and critical test cases as discussed below: Test Case 1: A very short list (of inputs) with the size of 1, 2, or 3 elements. Test Case 2: An empty list i.e., of size 0. Test Case 3: A list where the minimum element is the first or last element. Test Case 4: A list where the minimum element is negative. Test Case 5: A list where all elements are negative. Test Case 6: A list where some elements are real numbers. Test Case 7: A list where some elements are alphabetic characters and special characters Test Case 8: A list with duplicate elements. Test Case 9: A list where one element has a value greater than the maximum permissible limit of an integer [There is no limit for int in Python3- with this test case, it would be confirmed]

Step by Step Solution

There are 3 Steps involved in it

Step: 1

ANSWER To test the minimum program with the specified test cases you can write a Python script as follows The script will handle exceptions for variou... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Managerial Economics

Authors: Mark Hirschey

12th edition

9780324584844, 324588860, 324584849, 978-0324588866

More Books

Students also viewed these Programming questions

Question

=+1. What is digital consumer behavior?

Answered: 1 week ago