The Boundary value analysis technique checks the program with input values that are on or close...
Fantastic news! We've Found the answer you've been seeking!
Question:
![](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2023/09/64f5721103927_1693807118182.jpg)
Transcribed Image Text:
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] 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]
Expert Answer:
Answer rating: 100% (QA)
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... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
For the functions f(x)=2-x and g(x)=x+2x-48, find f+g, f-g, fg, and Determine the domain for each function. g (f+g)(x)=(Simplify your answer.)
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
Q4. a- In a uniform electric field, what factors does the electrical potential energy depend on? b- What is the difference between APE electric and PE electric?
-
Read James Sloans thoughts about delivering bad news (pp. 337338). Respond to the following questions. A. According to Sloan, what are some principles for choosing an appropriate communication...
-
Grade inflation In 1996, 20% of all students at a major university had an overall grade point average of 3.5 or higher (on a scale of 4.0). In 2012, a random sample of 1100 student records found that...
-
A machine costs Rs 90,000 and is deemed to have a scrap value of 5% at the end of its effective life (19 years). Usually, the machine is expected to run 2,400 hours per annum, but it is estimated...
-
Suppose there are three processes A,B and C. All clock runs at the same rate but initially As clock reads 10, Bs clock reads 0 and Cs clock reads 5. At time 10 by As clock, A sends a message to B,...
-
Kingcade Corporation keeps careful track of the time required to fill orders. Data concerning a particular order appear below: The throughput time was: Multiple Choice 5.0 hours 28.6 hours The...
-
Context: We will compare samples of SDSU MIS 301 students to populations around California and the US. There is no indication of whether SDSU MIS 301 students will fall below, equal to, or above any...
-
The procedure for sign-off for testing activities identifies the person who will manage defects in the project. Group of answer choices True False
-
Winston Electronics reported the following information at its annual meetings. The company had cash and marketable securities worth $1,235,740, accounts payables worth $4,160,391, inventory of...
-
Hooray Company has been manufacturing 12,000 units of Part A which is used to manufacture one of its products. At this level of production, the cost per unit is as follows: Direct materials P 4.80...
-
At the beginning of the period, the Grinding Department budgeted direct labor of $171,200 and property tax of $57,000 for 10,700 hours of production. The department actually completed 12,800 hours of...
-
The following information is available for Shamrock Corporation for the year ended December 31, 2025. Beginning cash balance $ 58,500 Accounts payable decrease 4,810 Depreciation expense 210,600...
-
In today's stock market, compounding is the key to making money in the future for one's investments. However, with decentralized currency growing rapidly (Crypto), how can one rely on TVM for FV...
-
Carlberg Company has two manufacturing departments, assembly and painting. The assembly department started 12,000 units during November. The following production activity unit and cost information...
-
A firm has the following balance sheet: Assets Cash Accounts receivable Inventory Plant and equipment $ 15,000 150,000 92,000 170,000 $427,000 Liabilities and Equity Accounts payable Long-term debt...
-
Do operating strategies of average cost minimization and profit maximization always lead to identical levels of output?
-
The Central Perk Coffee House, Inc., is engaged in an aggressive store refurbishing program and is contemplating expansion of its in-store banking facilities. This investment project is to be...
-
Critics argue that if Congress wants to make the tax code more equitable, a good place to start would be removing unfair tariffs and quotas. Today, there are more than eight thousand import tariffs,...
-
40. The City of Pfeiffer starts the year of 2008 with the General Fund and an enterprise fund. The General Fund has two activities: education and parks/recreation. For convenience, assume that the...
-
41. Use the information in problem 40 to prepare the 2008 fund-based financial statements for the gov ernmental funds and the proprietary funds. A statement of cash flows is not required. Assume that...
-
37. The County of Maxnell decides to create a sanitation department and offer its services to the pub lic for a fee. As a result, county officials plan to account for this activity within the...
![Mobile App Logo](https://dsd5zvtm8ll6.cloudfront.net/includes/images/mobile/finalLogo.png)
Study smarter with the SolutionInn App