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:
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?
-
A four-pole, 60-Hz synchronous generator has a rotor length of 5.2 m, diameter of 1.24 m, and air-gap length of 5.9 cm. The rotor winding consists of a series connection of 63 turns per pole with a...
-
For the sprue described in Problem 5.79, what runner diameter is needed to ensure a Reynolds number of 2000? How long will a 20-in3 casting take to fill with such a runner?
-
Defendants in a criminal proceeding have a right to the assistance of counsel. Petty Crime Pat was charged with driving with a revoked drivers license four times. Under the law, the fourth offense...
-
Solitaire Companys fixed budget performance report for June follows. The $315,000 budgeted expenses include $294,000 variable expenses and $21,000 fixed expenses. Actual expenses include $27,000...
-
61. The solubility product of CuS, AgS and HgS are 10 37, 104 and 1054 respectively. The solubility of these sulphides will be in the order (1) HgS> AgS > Cus (2) AgS>HgS > CuS (3) CuS AgS > HgS (4)...
-
What Happens When You Dont Deliver on Your Promises Web: www.clearly.ca Facebook: Clearly Canadian If a new product or service seems like the perfect option to solve a problem or capitalize on an...
-
Use the cashiers algorithm to make change using quarters, dimes, nickels, and pennies for the following amounts of money. You do not have to specifically show how you greedily formed change, but...
-
Efficient Markets Hypothesis A famous economist just announced in the Financial Times his findings that the recession is over and the economy is again entering an expansion. Assume market efficiency....
-
Assume that the risk-free rate is 3 per cent and the expected return on the FTSE 100 index is 9 per cent. The standard deviation of the market index is 23 per cent. You are managing the pension fund...
-
The Dutch firm, ABS Equipment, has an investment opportunity in the United Kingdom. The project costs 12 million and is expected to produce cash flows of 2.7 million in year 1, 3.5 million in year 2,...
-
You are the finance director of a British company which is expecting a payment in euros of 200 million at the end of September and wish to hedge against currency risk. However, the nearest maturity...
-
You plan to raise funds through following Islamic principles. You require funding today of 3 billion Bahrain dinars and would like to pay it back in equal amounts over 10 years in monthly...
-
A man steals a $100 bill from a store's register. Then he buys $70 worth of goods at that store using the $100 bill, and gets $30 change. How much did the money store lose...
-
What recommendations would you make to Big Four firms to help them (1) avoid confrontations with governmental officials in an authoritarian society and (2) deal effectively with such confrontations...
-
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,...
-
During transduction involving a P1 phage, a. any small fragment of the bacterial chromosome may be transferred to another bacterium by a new phage. b. only a specific fragment of DNA may be...
-
Which of the following statements is correct? a. If a deletion and a duplication are the same size, the deletion is more likely to be harmful. b. If a deletion and a duplication are the same size,...
-
In a diploid species, complete nondisjunction during meiosis I may produce a viable cell that is a. trisomic. b. haploid. c. diploid. d. triploid.
Study smarter with the SolutionInn App