• No results found

week 8

N/A
N/A
Protected

Academic year: 2020

Share "week 8"

Copied!
37
0
0

Loading.... (view fulltext now)

Full text

(1)

The University of Lahore

A “W4” Category University

Lecture 22

CHAPTER 3

(2)

The University of Lahore

A “W4” Category University

07/10/2020 2

Success factors for reviews

Find a champion

1. A champion is needed, one who will lead the review process.

2. They need expertise, enthusiasm and practical mindset in order to guide moderators and participants.

(3)

The University of Lahore

A “W4” Category University

Pick things that really count

1. Select the documents for review that are most important in a project.

(4)

The University of Lahore

A “W4” Category University

07/10/2020 4

Explicitly plan and track review activities

1. To ensure that review become part of the day-to-day activities, the hours to be spent should be made visible within each project plan.

(5)

The University of Lahore

A “W4” Category University

Train participants

(6)

The University of Lahore

A “W4” Category University

07/10/2020 6

Manage people issues

1. Reviews are about evaluating someone’s document. Some reviews tend to get too personal when they are not well managed by the moderator.

2. People issues and psychological aspects should be dealt with the moderator and should be part of the review training, thus making the review a positive experience for the author.

(7)

The University of Lahore

A “W4” Category University

Follow the rules

1. Follow all the formal rules.

(8)

The University of Lahore

A “W4” Category University

07/10/2020 8

JUST DO IT!

(9)

The University of Lahore

A “W4” Category University

Complexity

The degree to which a component or system has a design and/or internal structure that is difficult to understand, maintain and verify.

Cyclomatic Complexity

The number of independent paths through a program, defined as M=E-N + 2P

where

E = The number of edges of the graph N = The number of nodes of the graph P = The number of connected components

Control Flow

(10)

The University of Lahore

A “W4” Category University

07/10/2020 10

A graph with three Connected Components

In graph theory, a connected component of an

undirected graph is a subgraph in which any two vertices are connected to each other by

(11)

The University of Lahore

A “W4” Category University

(12)

The University of Lahore

A “W4” Category University

07/10/2020 12

(13)

The University of Lahore

A “W4” Category University

Control Flow Structure - Example

IF A = 354

THEN IF B > C THEN A = B ELSE A = C END IF

ENDIF PRINT A

A = 354

B > C

A = C A = B

ENDIF

ENDIF

PRINT A

Cyclomatic Complexity = 8 – 7 + 2 = 3

(14)

The University of Lahore

A “W4” Category University

07/10/2020 14

CLASSWORK 1

(15)

The University of Lahore

A “W4” Category University

CLASSWORK 2

(16)

The University of Lahore

A “W4” Category University

07/10/2020 16

CLASSWORK 3

(17)

The University of Lahore

A “W4” Category University

(18)
(19)

The University of Lahore

A “W4” Category University

Lecture 24

CHAPTER 4

(20)

The University of Lahore

A “W4” Category University

07/10/2020 20

Test Design Techniques

1. Introduction

2. Identifying test conditions and designing cases

3. Categories of test design techniques

4. Specification-based OR black box techniques

5. Structure-based OR white box techniques

(21)

The University of Lahore

A “W4” Category University

Before we execute a test, we should know

1- What we are trying to test?

2- The inputs

3- The results produced by those inputs

4- How we can run the tests?

Test Conditions

Test Cases

(22)

The University of Lahore

A “W4” Category University

07/10/2020 22

Test Conditions

are documented in test condition specification. How to choose test condition?

Test Cases

are documented in test cases specification. How to write a good test case?

Test Procedures (test script)

(23)

The University of Lahore

A “W4” Category University

Test Condition

An item of a component or a system that could be

verified by one or more test cases.

OR

(24)

The University of Lahore

A “W4” Category University

07/10/2020 24

Example1 Username field condition

Condition 1:

Should start with alphabet

Condition 2:

Should not contain more than 8 char.

Condition 3:

Should contain at least 2 digits without

any special characters.

So condition for Username field will be something like

Ap22le.

(25)

The University of Lahore

A “W4” Category University

Example 2: Test conditions in login screen :

C

1 C2

C3 C4

(26)

The University of Lahore

A “W4” Category University

07/10/2020 26

Class Work

(27)

The University of Lahore

A “W4” Category University

1. The good way to understand requirements better is to try to define tests to meet those requirements.

2. Test conditions should be related to the system under developed.

3. Identify test conditions as many as you can.

4. Being selective afterwards to develop in more detail and combine into test cases call them “test possibilities”.

5. Exhaustive testing is impossible and impractical. 6. We have to select the subset of all possible tests.

(28)

The University of Lahore

A “W4” Category University

07/10/2020 28

Test design techniques

“A procedure used to select test cases.”

(29)

The University of Lahore

A “W4” Category University

Traceability OR Validation Matrix is a table that relates the customer requirements and it is used in order to ensure that all the customer requirements have been satisfied by the test cases.

OR

A document showing the relation between requirements and test cases. To check whether the test cases are mapped with the requirement.

(30)

The University of Lahore

A “W4” Category University

(31)

The University of Lahore

(32)

The University of Lahore

A “W4” Category University

07/10/2020 32

Test Case

A set of input values, execution preconditions, expected results, execution post conditions developed for a particular test condition.

Test Case Specification

A document describing a set of test cases. 1. A test case need to have input values.

2. The test should access the system does what is supposed to do.

3. If you don’t know what the system is supposed to do with input values, you can’t tell whether your test has passed or failed.

(33)

The University of Lahore

A “W4” Category University

Test Oracle

A source to determine expected results compared with the actual results of the software under test.

Source

1- Requirement specification 2- Existing system

3- User manual

(34)

The University of Lahore

A “W4” Category University

07/10/2020 34

Test Procedure Specification

(35)

The University of Lahore

A “W4” Category University

Test case for an online purchasing system.

Test Procedures Specification

1) Validate the details of the item are displayed as in the database 2) Validate the availability of the item and number

3) Validate that when you select the item in the front end (like a checkbox) it gets selected

4) Validate you get an error message if you are not a registered user

5) Validate you are able to click the 'submit' button and the page is reloaded 6) Validate whether you get a success message with the form

(36)

The University of Lahore

A “W4” Category University

07/10/2020 36

1.To verify ATM card Insertion

2.To verify ATM card Insertion in wrong angle 3.To verify invalid ATM card Insertion

4.To verify Language selection 5.To verify Pin entry

6.To verify invalid Pin entry

7.To verify invalid Pin entry 3 times 8.To verify Account Type selection 9.To verify withdrawal option selection 10.To verify Amount entry

11. To verify withdrawal success operation

12.To verify operation when our entered amount is grater than possible balance

(37)

The University of Lahore

References

Related documents

In the production of bulk samples such as optical fiber preforms (the doping will be discussed later) or in microelectronics, the preparation of silica implies high temperature,

What amount of rent revenue should be reported in Lucia’s income statement for the year ended December 31, 2012c. purchased bonds at a discount

(1) If personal checks, cashier's checks, traveler’s checks, payroll checks or counter checks are cashed at the cage, the gaming operation shall establish and comply with

Interventions: After baseline evaluation, patients were randomized in a double-blind fashion, to receive either trimetazidine 20 mg (n=27) or placebo (n=24) three

For example, if transient coyotes do not move far distances in urbanized locales (because of high road density) then localized control efforts may be more successful in

All chemicals used for cleaning and sanitizing are approved in the country of use, are properly labeled, used for their intended purposes and stored in secure, locked areas away

Adult & Youth Community-based Services Youth Residential Services (Compass) School-Based Services Satellite Offices Director, Parkland Tina Erlendson Impaired Driving

Due to the prevalence of calm waters within the mud bank during south west monsoon, which is a period of very high wind and wave activity, fishermen use this region for launching