0% found this document useful (0 votes)
15 views4 pages

Lab 05

Uploaded by

Noor-Ul Ain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views4 pages

Lab 05

Uploaded by

Noor-Ul Ain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

ST LAB 05

Task 01: Create the decision table for this case.

Consider a dialogue box which will ask the user to upload photo with certain conditions
like

1. You can upload only '.jpg' format image


2. file size less than 32kb
3. Resolution 137*177.

If any of the conditions fails, the system will throw corresponding error message stating the
issue and if all conditions are met photo will be updated successfully

SOLUTION:

Condition Case1 Case2 Case3 Case4 Case5 Case6 Case7 Case8


Format T T T T F F F F
jpg(T/F)
File Size(T/F) T T F F T T F F
Resolution(T/F) T F T F T F T F
Output(U/E) U E E E E E E E

Legend:

 T – Correct format/file size/resolution


 F – Wrong format/file size/resolution
 E – Error message is displayed
 U – Photo is uploaded

Interpretation:

 Case 1 – The photo has the correct format, correct file size, and correct resolution. The
photo is successfully uploaded.
 Case 2 – The photo has the correct format and correct file size, but the resolution is
incorrect. An error message is displayed.
 Case 3 – The photo has the correct format, but the file size is incorrect and the resolution
is correct. An error message is displayed.
 Case 4 – The photo has the correct format, but both the file size and resolution are
incorrect. An error message is displayed.
 Case 5 – The photo has an incorrect format, but the file size and resolution are correct.
An error message is displayed.
 Case 6 – The photo has an incorrect format, and the file size is correct, but the resolution
is incorrect. An error message is displayed.
 Case 7 – The photo has an incorrect format, the file size is incorrect, but the resolution is
correct. An error message is displayed.
 Case 8 – The photo has an incorrect format, incorrect file size, and incorrect resolution.
An error message is displayed.

Task 02: Consider A flight reservation system that can be accessed with correct agent name
and password and if user enters the wrong password, the system will allow three attempts,
and if wrong password is entered at 4th attempt, the system closes the system

automatically. In this scenario, testing with the correct password and with an incorrect
password is compulsory.

Draw the state Transition diagram and state table for the above scenario.

STATE TRANISITION TABLE:

Correct Password Incorrect Password


S1) Start - -
S2) 1st Attempt S6 S3
S3) 2nd Attempt S6 S4
S4) 3rd Attempt S6 S5
S5) 4th Attempt S6 S7
S6) Access Granted - -
S7) System closes - -
automatically
Diagram:

Incorrect Password Incorrect Password Incorrect Password

S6 4th Attempt
Start 1st Attempt 2nd Attempt 3rd Attempt

Correct Password
Correct Password Incorrect Password
Correct Password

Access System closes


Granted automatically

You might also like