Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

this is software validation and testing question. Using the following scenario as an example, give the complete decision table for the requirement given under Question

this is software validation and testing question.
image text in transcribed
image text in transcribed
image text in transcribed
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 - 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. 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) Should a candidate retake the practice exam? (possible values: YES or NO) Should a candidate retake the driving lessons? (possible values: YES or NO) 3. Generate all possible combinations of conditions, each single combination forms a separate column in the decision table. Each condition has two possible values, so we have 2 x2 - 4 possible combinations of conditions (and, hence, four columns in the decision table): - Points >=85 and errors > 2. - Points >=85 and errors >2. . Should a candidate retake the driving lessons? (possible values: YES or NO) 3. Generate all possible combinations of conditions; each single combination forms a separate column in the decision table. Each condition has two possible values, so we have 2 x2 = 4 possible combinations of conditions (and, hence, four columns in the decision table): Points >= 85 and errors >=2. -Points >85 and errors >2. Points 2. 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 I 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. CONTIN HA KELES 3 . NES 3 . NO NO NO Y5 ACTS NO YES R TES NO NO NO ND NO Y NO VES WS VES 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: To . LETRAS G VO MO NO ES W NO 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: . 4 Red 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. Question 2: Consider the following website: https://www.opencart.com/ Using Selenium and python write a script to perform functional testing. Test if links are working, text boxes are enabled, displayed and accept text values, command buttons are responsive and report if there are any dysfunctionalities within these elements. Give the code for each along with a descriptive text that explains what cach line does. 2

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

Object Databases The Essentials

Authors: Mary E. S. Loomis

1st Edition

020156341X, 978-0201563412

More Books

Students also viewed these Databases questions

Question

What are the differences between systems, products, and tools?

Answered: 1 week ago

Question

8. Describe the main retirement benefits.pg 87

Answered: 1 week ago

Question

How would you describe your typical day at work?

Answered: 1 week ago