0% found this document useful (0 votes)
88 views

Domain Analysis Testing

The document describes domain analysis testing and decision table testing for different scenarios. For the games exhibition scenario, it identifies test cases based on partitioning the age ranges into equivalence classes and using boundary values. The decision table testing scenario for withdrawals identifies conditions, actions, and generates test cases based on the decision table. For the admissions scenario, it identifies conditions, draws up a decision table, and lists test cases to test all combinations of conditions and actions.

Uploaded by

tehreem mushtaq
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
88 views

Domain Analysis Testing

The document describes domain analysis testing and decision table testing for different scenarios. For the games exhibition scenario, it identifies test cases based on partitioning the age ranges into equivalence classes and using boundary values. The decision table testing scenario for withdrawals identifies conditions, actions, and generates test cases based on the decision table. For the admissions scenario, it identifies conditions, draws up a decision table, and lists test cases to test all combinations of conditions and actions.

Uploaded by

tehreem mushtaq
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Software Testing 

Task 02 
Q1:  
Perform domain analysis testing on the following scenario: 
Consider a games exhibition for Children, 6 competitions are laid out, and tickets have to be 
given according to the age and gender input. The ticketing is one of the modules to be  tested
in for the whole functionality of Games exhibition. According to the scenario, we got  six
scenarios based on the age and the competitions: 
🞂 Age >5 and <=10, Boy should participate in Storytelling. 
🞂 Age >5 and <=10 , girl should participate in Drawing Competition. 
🞂 Age >10 and <=15, Boy should participate in Quiz. 
🞂 Age >10 and <=15 , girl should participate in Essay writing. 
🞂 Age<=5, both boys and girls should participate in Rhymes Competition. 🞂
Age >15, both boys and girls should participate in Poetry competition. 

Solution:
First we will have the two partitions:

Boundary values (on and off)

Equivalence partitioning (in and out)

So for each of the above scenarios:

🞂 Age >5 and <=10

For Girls:

In: 6,10 Out: 5 ,11 On: 7 Off: 12

Test cases:

Input=6; Expected Result=Drawing Competition

Input=10; Expected Result=Drawing Competition

Input=5; Expected Result=Rhymes Competition

Input=11; Expected Result=Essay Writing

Input=7; Expected Result=Drawing Competition

Input=12; Expected Result=Essay Writing


For Boys:

In: 6,10 Out: 5 ,11 On: 7 Off: 12

Input=6; Expected Result=Story telling

Input=10; Expected Result=Story telling

Input=5; Expected Result=Rhymes Competition

Input=11; Expected Result=Quiz

Input=7; Expected Result=Story telling

Input=12; Expected Result=Quiz

🞂 Age >10 and <=15

For Girls:

In: 11,15 Out: 10 ,16 On: 12 Off: 17

Test cases:

Input=11; Expected Result=Essay Writing

Input=15; Expected Result=Poetry Competition

Input=10; Expected Result=Drawing Competition

Input=16; Expected Result=Poetry Competition

Input=12; Expected Result=Quiz

Input=17; Expected Result=Poetry Competition

For Boys:

In: 11,15 Out: 10 ,16 On: 12 Off: 17

Input=11; Expected Result=Quiz

Input=15; Expected Result=Quiz


Input=10; Expected Result=Story telling

Input=12; Expected Result=Quiz

Input=17; Expected Result=Poetry Competition

🞂 Age<=5

In: 4,5 Out: 6,7 On: 2 Off: 7

Input=4; Expected Result= Rhymes competition

Input=5; Expected Result= Rhymes Competition

Input=6; Expected Result=Story telling(boy)

Input=6; Expected Result= Drawing competition (girls)

Input=2; Expected Result= Rhymes competition

Input=7; Expected Result=Story telling(boy)

Input=7; Expected Result= Drawing competition (girls)

🞂 Age>15

In: 16 Out: 14 On: 21 Off: 7

Input=16; Expected Result=poetry Competition

Input=14; Expected Result=Quiz(boy)

Input=14; Expected Result=Essay Writing(girl)

Input=21; Expected Result= Poetry competition (girls)

Input= 7; Expected Result=Story Telling(boy)

Input=7; Expected Result=Drawing Competition(Girls)


Q2: Perform decision table testing on the following scenario. 
Requirement: “Withdrawal is granted if requested amount is covered by the balance or if 
the customer is granted credit to cover the withdrawal amount”. 
🞂 Identify conditions 
🞂 Identify actions 
🞂 Draw decision table 
🞂 Make test cases.  

Conditions:
Withdrawal Amount <= Balance
Credit granted
Actions:
Withdrawal granted

Decision Table:

Conditions Withdrawal Amount Credit Granted Action:


<=Balance Withdrawal
granted
T T(not needed) T
F T T
T F(not needed) T
F F F

Test Cases:

Balance =500; Requested Withdrawal =500


Expected Result: Withdrawal Granted

Balance =500; Requested Withdrawal =700 credit granted


Expected Result: Withdrawal Granted

Balance =500; Requested Withdrawal =700 No Credit


Expected Result: Withdrawal Denied

Q3. Perform decision table testing on the following scenario.


Solution:
Conditions:
Gpa >80 and gpa <= 100
Gpa > 70 and gpa <= 80
Gpa >= 70 and gpa <= 60
gpa <60
Failures
No Failures
Actions:
Admitted
Scholarship Received
Decision Table:
Gpa >80 Gpa > 70 Gpa >= 70 Failures Admitted Scholarship
and gpa and gpa and gpa gpa Received
<= 100 <= 80 <= 60 <6
0

T - - - F  
- T - - F  
- - T - F  
- - - T F  
T - - - T  
- T - T  
- - T - T  
- - - T T  

Test Cases:
TC#1
Gpa >80 and gpa <= 100 + No Failure:
Admitted
Scholarship Received

Gpa >80 and gpa <= 100 + Failure:


Not Admitted
No Scholarship Received

TC#2
Gpa > 70 and gpa <= 80+ No Failure:
Admitted
No Scholarship Received

Gpa > 70 and gpa <= 80+ Failure:


Not Admitted
No Scholarship Received

TC#3
Gpa >= 70 and gpa <= 60+ No Failure:
Admitted
No Scholarship Received

Gpa >= 70 and gpa <= 60+ Failure:


Not Admitted
No Scholarship Received

gpa <60

Not Admitted
No Scholarship Received

You might also like