The University of Lahore
A “W4” Category University
Lecture 22
CHAPTER 3
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.
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.
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.
The University of Lahore
A “W4” Category University
Train participants
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.
The University of Lahore
A “W4” Category University
Follow the rules
1. Follow all the formal rules.
The University of Lahore
A “W4” Category University
07/10/2020 8
JUST DO IT!
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
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
The University of Lahore
A “W4” Category University
The University of Lahore
A “W4” Category University
07/10/2020 12
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
The University of Lahore
A “W4” Category University
07/10/2020 14
CLASSWORK 1
The University of Lahore
A “W4” Category University
CLASSWORK 2
The University of Lahore
A “W4” Category University
07/10/2020 16
CLASSWORK 3
The University of Lahore
A “W4” Category University
The University of Lahore
A “W4” Category University
Lecture 24
CHAPTER 4
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
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
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)
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
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.
The University of Lahore
A “W4” Category University
Example 2: Test conditions in login screen :
C
1 C2
C3 C4
The University of Lahore
A “W4” Category University
07/10/2020 26
Class Work
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.
The University of Lahore
A “W4” Category University
07/10/2020 28
Test design techniques
“A procedure used to select test cases.”
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.
The University of Lahore
A “W4” Category University
The University of Lahore
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.
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
The University of Lahore
A “W4” Category University
07/10/2020 34
Test Procedure Specification
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
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