Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using the following scenario as an example, grve the complete decision table for the requirement prvender Oesti Suppose we have a system that cheeks if

image text in transcribed
image text in transcribed
Using the following scenario as an example, grve the complete decision table for the requirement prvender Oesti Suppose we have a system that cheeks if a candidate for driving license fulfill all remes to receive the license. The requirement specification describes the above mentioned business rules The operate enters the following ination to the system The result of the theory exam an integer als in the range 0 100 points) The revelled the practice cum integer value greater or equal to reto, representing the number ofemmes done by the candidate during the practicam A candidate receives the driving license, if she he gained at least 85 marks out of 100 from the they eum and if she he made at most 2 errors during the practice cum. In case of filing one of these criteria the candidate is eligible to take the exam, In case of failing in both parts the candidates mited to retake the driving lesson Let us go through the proces described above tu dernie test cases for this problem 1. Identify all possible condities. The possible conditions on which the system's decisions depend are obviously The result of the shoryum (ember of print) The real of the practice cam number of con The decisions will depend on the role of these com From the specification we know that the theory exames passed when a candidate receives at least 5 points. The practice exam is passed when the number of mistakes is 2 ore 2. Identify all the responding action that may occur in the system. The system may take the following decisions Should a candidate receive the driving lionel possible values: YES or NO) Should a candidate retake the theory and possible values: YESNO) Should a candidate retake the practice possible values: YES NO) Shout a candidateretbe the driving posible values: YES or NO) 3. Generate all possible combinations of conditions cach single combination forms a seperate column in the decision table. Fachadition has two posible values, so we have 2 2-4 possible combinations of credit and hence, four column the decision table - Point and - Mits-85 and comes 2 Points and emes-2 Points -85, te>2This 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 85,-2. The candidate failed the theory exam. She cannot receive the driving license and sho he should retake the theory exam. Hence, the corresponding actions in the column 3 are respectively NO, YES. NO, NO Column 4 points 2. The candidate failed both exam. She he cannot receive the license and should take the driving lessons. The complete decision table is given as follows CONTRARIUS 3 NO . NO NA MS NO ma ACTIONS G Het | VES M NO NE) NO YES NO WS O VES NO 29 NO YES 5. For each column, design a test case in which a given combination of conditions holds the test should verify if the corresponding actions hold. A test case needs to have the concrete input values In this case, this will be the number of points and the number of errors. The corresponding test cases for the four columns in the decision table might look like as follows: Tend 1 Pada o 95 - 1 s Rose days when at the are 4 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 Anonregistered 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 discount Ifa registered userpent 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 Junities and use the lost cas 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

Advances In Knowledge Discovery In Databases

Authors: Animesh Adhikari, Jhimli Adhikari

1st Edition

3319132121, 9783319132129

Students also viewed these Databases questions