You are on page 1of 10

CONFIDENTIAL ITS670/FINALONLINE/JULY2020

COURSE : SYSTEM TESTING AND EVOLUTION


COURSE CODE : ITS670
EXAMINATION : JULY 2020 (ONLINE)
TIME : 1 HOURS 30 MINUTES

INSTRUCTIONS TO CANDIDATES

1. This question paper (Part B) consists of FOUR (4) questions.

2. Answer ALL questions in this Question paper.

3. Write your details in the provided space below:

Name : Puteri Yasmin Syazwani Binti Abdull Aziz

Student No. : 20197012929

Group : M3CS2465B

Lecturer’s Name : Dr.Edreena Edza Odzaly

This examination paper consists of 9 printed pages


PART B (1 HOUR 30 MINUTES)

Short Essay Questions (40 marks)

QUESTION 1 (10 MARKS)

a) There are many roles involves in the Testing phase. Each of them plays an important role that
acquires great responsibility and commitment.

i) The test engineer can be divided into some different roles depending of the unique
competences. List each of the roles.
(2 marks)

ANSWERS:

1. Usability engineer
2. Manual tester
3. Protocol tester
4. Automatic tester

ii) The Test Manager is planning to conduct usability testing for the product that is due to
launch. Identify the main and additional roles that will be included in this testing process.
(2 marks)

ANSWERS:

Main roles in usability testing


- Test monitor
- Test subjects

Additional roles
- Test administrator
- Observer
- Timer
- Data logger
- Technical expert
- Video operator

2|Page
b) Software maintenance is used when a product is adapted to changing requirements or when
failures are removed that had already been in the system. Maintenance testing is done on
existing operational system, and is triggered by modifications, migration, or retirement of the
software or system.

i) Differentiate between modifications and migration in maintenance testing.


(4 marks)

ANSWERS:

Differences between modification and migration


Modifications Migration

- Modification is a planned - Migration in maintenance testing is a


enhancement changes. conversion testing which data from
- Adjustments due to planned another application will be migrated
modification into the system that being maintained
- Extension required because of - Operational test of the new software
market changes and hardware environment as the
- Modification in maintenance testing is changed software
to defect fixing, changes environment
such as update operating system or
database management system and to
improve the system quality

ii) Provide ONE (1) example of testing to support each of your answer in (i).
(2 marks)

ANSWERS:

Regression testing is a repeated testing of an already tested program after modification

3|Page
QUESTION 2 (10 MARKS)

a) Deposit Transaction Use Case

A deposit transaction is started from within a session when the customer chooses deposit from
the menu of possible transaction types. The customer chooses a type of account to deposit to
(e.g. checking) from a menu of possible accounts, and then chooses a amount by typing it on
the keyboard. The system sends the customer's card number, PIN, chosen account and
amount to the bank, which either approves or disapproves the transaction.

If the transaction is approved, the machine accepts money from the customer and then issues
a receipt. (If the customer does not insert the money within a specified period of time, this
operation times out and the deposit transaction is aborted.)

If the transaction is disapproved due to an incorrect PIN, the Incorrect PIN extension is
executed. All other disapprovals are reported to the session, which initiates the Failed
Transaction Extension. The bank is notified whether or not an approved transaction was
completed in its entirety by the machine; if it is completed then the bank completes crediting
the customer's account for the amount - contingent on manual verification of the deposit
envelope contents by an operator later.

Propose TWO (2) test cases inclusive of ONE (1) invalid and ONE (1) valid cases that should
be used in the testing for EACH of the activities. Design the test cases by stating the steps,
input and expected outcomes.
(5 marks)

ANSWERS:

Test DEPOSIT TRANSACTION of Test “Enter invalid PIN”


Test Case of Test “Deposit Transaction”
a) Test Procedure of Test Case “Deposit Transaction”
1. User choose deposit from menu of transaction types
2. User select type of account to deposit
3. User enter amount
4. System

b) Test input
User PIN number

c) Expected Outcomes
The expected outcome is the user cannot deposit transfer and error message appear

4|Page
b) Transfer Transaction Use Case

A transfer transaction is started from within a session when the customer chooses transfer
from the menu of possible transaction types. The customer chooses a type of account to
transfer from (e.g. checking) from a menu of possible accounts, chooses a different account to
transfer to, and then chooses a dollar amount by typing it on the keyboard. The system sends
the customer's card number, PIN, chosen account and amounts to the bank, which either
approves or disapproves the transaction. If the transaction is approved, the machine issues a
receipt. If the transaction is disapproved due to an incorrect PIN, the Incorrect PIN extension is
executed. All other disapprovals are reported to the session, which initiates the Failed
Transaction Extension. The bank will consider the transaction complete once it has been
approved.

Propose TWO (2) test cases inclusive of ONE (1) invalid and ONE (1) valid cases that should
be used in the testing for EACH of the activities. Design the test cases by stating the steps,
input and expected outcomes.
(5 marks)

ANSWERS:

Test case of Transfer Transaction “Enter valid PIN”


a) test procedure of test case “Enter valid PIN”
1. User choose transfer from the menu
2. User choose type of account to transfer
3. user choose dollar amount
4. user enter amount using the keyboard
` 5. System displayed user information

b) test input
The test input is user Card PIN number
c) Expected outcomes
The expected result of this test case is the transaction approves and the machines will
issue a receipt

Test case of Transfer Transaction “Enter invalid PIN”


a) test procedure of test case “Enter valid PIN”
1. User choose transfer from the menu
2. User choose type of account to transfer
3. user choose dollar amount
4. user enter amount using the keyboard
`
b) test input
The test input is user Card PIN number
c) Expected outcomes
The expected result of this test case is the transaction disapproved and an error message
appear to inform the user that they enter invalid PIN
5|Page
6|Page
QUESTION 3 (10 MARKS)

a) Using the following program segment, answer the questions below:

void main (void)


{
int a,b,c;
int min, max;
if (a>b)
{
if (a>c)
{
max = a;
min = c;
}
else
{
max = a;
min = b;
}
}
else
{
max = b;
min = a;
}
cout<< min<< max;
}

i. Compute the cyclomatic complexity value of the program.

8-7+2= 3
(2 mark)

ii. Based on the value of cyclomatic complexity, derive the basis set of test paths.

1 –> 2-> 3->4->7


(3 mark)
1 –> 2-> 3->5->7, 1 –> 2-> 6->7

iii. Construct a flow graph for the above program.

7|Page
1
2

3
6

4 5

(5 marks)

8|Page
QUESTION 4 (10 MARKS)

a) Risk is the probability of occurrence of an undesirable outcome. Risk based testing is


basically a testing done for the project based on risks. It uses risk to prioritize and
emphasize the appropriate tests during test execution.

i) Consider the following scenario:

You are appointed as the Test Leader, who is in charge of organizing the test execution
for a software that will be used to monitor the safe flight and landing for an aircraft. This
software is complex where it controls the navigation and the manoeuvre of the aircraft.
This is a safety-critical software and is subjected to regulatory requirements. No release,
not even to beta, can be conducted unless all regulatory requirements have been met.
There are features that the business thinks are critical to the success of the project. These
include some new reporting capabilities that will help to differentiate this product from
the competition.

The Test Manager has created Table 1 of the test cases to be executed. Sprints are two
weeks long and usually executed sequentially. Given this information, identify the proper
order for test case execution. Note that, 1 is the highest priority. Write your answer in
the given Test Case Priority column.
Answer:
Table 1: List of Test Cases
Test Risk Business Regulatory Software Test Case
Case Priority Priority Requirement availability Priority

1 Very High High No Sprint 4

2 High Medium Yes Sprint 3

3 Medium High No Sprint 2

4 High High Yes Sprint 1

5 Low Medium Yes Sprint 2

6 Medium Low Yes Sprint 3

7 Very High Low Yes Sprint 3

(7 marks)

ii) Referring to the Table 1 in (i), consider the following scenario:

If the risk for Test Case 4 has a probability of occurrence of 45%, and a loss of 6 days,
calculate the Risk Exposure for (days) for Test Case 4.
9|Page
Risk exposure = 6 days * 45% = 2.7 days

(3 marks)

END OF QUESTION PAPER

10 | P a g e

You might also like