Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Software Validation and Testing Using the following scenario as an example, give the complete decision table for the requirement given under Question 1 Suppose we

image text in transcribedimage text in transcribedSoftware Validation and Testing

Using the following scenario as an example, give the complete decision table for the requirement given under Question 1 Suppose we have a system that checks if a candidate for a driving license fulfills all requirements to receive the license. The requirement specification describes the above mentioned business rules as follows: The operator enters the following information to the system: The result of the theory exam (an integer value in the range 0-100 points) The result of the practice exam (an integer value greater or equal to zero, representing the number of errors done by the candidate during the practice exam) A candidate receives the driving license, if she/he gained at least 85 marks (out of 100) from the theory exam and if she/he made at most 2 errors during the practice exam. In case of failing on one of these criteria, the candidate is eligible to retake the exam. In case of failing in both parts, the candidate is required to retake the driving lessons. 4. For each combination of conditions identify which actions should hold and which should not; fill the corresponding fields in the given column below the corresponding combination of conditions. Now we go through the columns one by one and for each of them, we identify the expected behavior of the system: Column 1: points >=85, errors >=2. This means that the candidate passed both exams, so she/he should get her driving license. There is no need to retake exams or the driving lessons. Hence, the four corresponding actions in the column 1 should be respectively YES, NO, NO, NO. Column 2: points >=85, errors >2. This means that the candidate failed the practice exam. She he cannot receive the driving license and she should retake the practice exam. Hence, the corresponding actions in the column 2 are respectively NO, NO, YES, NO. Column 3: points 2. The candidate failed both exam. She he cannot receive the license and should retake the driving lessons. The complete decision table is given as follows. 3 4 1 YES YES 2 YES NO NO NO YES Let us go through the process described above to derive test cases for this problem. 1. Identify all possible conditions. The possible conditions on which the system's decisions depend are obviously: The result of the theory exam (number of points) The result of the practice exam (number of errors) The decisions will depend on the results of these exams. From the specification we know that the theory exam is passed when a candidate receives at least 85 points. The practice exam is passed, when the number of mistakes is 2 or less. 2. Identify all the corresponding actions that may occur in the system. The system may take the following decisions: . Should a candidate receive the driving license? (possible values: YES or NO) . Should a candidate retake the theory exam? (possible values: YES or NO) CONDITIONS RULES - Points > 852 Errors = 85 and errors >=2. - Points >=85 and errors >2. Test case Input Points Errors 85 0 1 2 3 4 95 84 11 2 5 3 Expected output Grant the license, does not require the candidate to retake any exam or lessons Requires the candidate only to retake the practice exam Requires the candidate only to retake the theory exam Requires the candidate to retake both exams and the driving lessons Question 1: Suppose that we test a discount system in some e-shop. The system can send a loyalty card to a client and admit a discount of 0% (no discount), 5%, or 10% according to the following rules: . "No discount" is the default discount option. A nonregistered user has 0% discount by definition. If a registered user spent more than $1000 in the previous shopping sessions, and there were 19 or less shopping sessions, admit 5% discount. If a registered user spent more than $1000 in the previous shopping sessions and there were at least 20 shopping sessions, admit 10% discount. A loyalty card is sent only to registered customers who spent more than $1000 or had at least 20 shopping sessions. . . . Give the complete decision table Design test cases for the requirements Write a java code for the given requirement Write a Junit test and use the test cases. . Report the output of the test. Report if there are any defects and fixes

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Expert Oracle9i Database Administration

Authors: Sam R. Alapati

1st Edition

1590590228, 978-1590590225

More Books

Students also viewed these Databases questions

Question

=+j on to staff their operations in the global marketplace.

Answered: 1 week ago