2-Testing Conditions On Banking Projects
2-Testing Conditions On Banking Projects
So these extreme ends like Start- End, Lower- Upper, Maximum-Minimum, Just Inside-
Just Outside values are called boundary values and the testing is called "boundary
testing".
Example 1
USER ID, accepts valid User Name and Password field accepts minimum 6 characters
and maximum 12 characters. Valid range 6-12, Invalid range 5 or less than 5 and
Invalid range 13 or more than 13.
Write Test Cases for Valid partition value, Invalid partition value and exact boundary
value.
Example 2
Test cases for the any input box accepts numbers between 1-1000.Valid range 1-1000,
Invalid range 0 and Invalid range 1001 or more.
Write Test Cases for Valid partition value, Invalid partition value and exact boundary
value.
Test Cases 1: Consider test data exactly as the input boundaries of input domain i.e.
values 1 and 1000.
Test Cases 2: Consider test data with values just below the extreme edges of input
domains i.e. values 0 and 999.
Test Cases 3: Consider test data with values just above the extreme edges of input
domain i.e. values 2 and 1001.
Equivalence partitioning is a testing technique where input values set into classes for
testing.
Example 1
That means results for values in partitions 0-5, 6-10, 11-14 should be equivalent
1-TRANSFER MONEY
In the first column I took all the conditions and actions related to the requirement. All the
other columns represent Test Cases.
From the case 3 and case 4, we could identify that if condition 2 failed then system will
execute Action 3. So we could take either of case 3 or case 4
So finally concluding with the below tabular column.
Example 2: login page validation. Allow user to login only when both the ‘User ID’ and
‘Password’ are entered correct.
So I am eliminating one of the test case from case 2 and case 3 and concluding with the
below tabular column.
State Transition Testing:
It is a black box testing technique in which the tester analyzes the behavior of an
application under test for different input conditions in a sequence. In this technique,
tester provides both positive and negative input test values and record the system
behavior.
-This can be used when a tester is testing the application for a finite set of input values.
-When the tester is trying to test sequence of events that occur in the application under
test. I.e., this will allow the tester to test the application behavior for a sequence of input
values.
-When the system under test has a dependency on the events/values in the past.
Example 1: In the Bank login screen, consider you have to enter correct User ID and
password to access the Banking application.
It gives you the access to the application with correct password and login name, but
what if you entered the wrong password.
The application allows three attempts, and if users enter the wrong password at 4th
attempt, the system closes the application automatically.
The State Graphs helps you determine valid transitions to be tested. In this case, testing
with the correct password and with an incorrect password is compulsory. For the test
scenarios, log-in on 2nd, 3rd and 4th attempt anyone could be tested.
Each cell represents the state system will move to when the corresponding event
occurs.
For example, while in S1 state you enter a correct password you are taken to state S6
(Access Granted). Suppose if you have entered the wrong password at first attempt you
will be taken to state S3 or 2nd Try.
Two invalid states are highlighted using this method. Suppose you are in state S6 that is
you are already logged into the application, and you open another instance of Bank and
enter valid or invalid passwords for the same User. System response for such a
scenario needs to be tested.
In Use Case, we will describe ‘How a System will respond to a given Scenario?’. It is
‘user-oriented’ not ‘system oriented’.
It is ‘user-oriented’: We will specify ‘what are the Actions done by the user?’ and ‘What
the Actors see in a system?.
It is not ‘system oriented’: We will not specify ‘What are the input given to the system?’
and ‘What are the output produced by the system?’.
Example 1:
Use case Description A user login to System to access the functionality of the system.
Post -Condition After a successful login a notification mail is sent to the User mail id
2b Invalid Password
System shows an error message
Decision coverage reports the true or false outcomes of each Boolean expression.
Example1:
Read A
Read B
ENDIF
If A > 5 THEN
ENDIF
The above logic can be represented by a flowchart as:
Result:
To calculate Branch Coverage, one has to find out the minimum number of paths which
will ensure that all the edges are covered. In this case there is no single path which will
ensure coverage of all the edges at once. The aim is to cover all possible true/false
decisions.
(1) 1A-2C-3D-E-4G-5H
(2) 1A-2B-E-4F
Demo(int a) {
If (a> 5)
a=a*3
Print (a)
Scenario 1:
Value of a is 2
Scenario 2:
Value of a is 6
1 2 2 50%
2 6 18 50%
Statement coverage is used to derive scenario based upon the structure of the code
under test.
Example1:
Read A
Read B
if A>B
Print “A is greater than B”
else
Print "B is greater than A"
endif
Set1:
If A =5, B =2
No of statements Executed: 5
Total no of statements in the source code: 7
Statement coverage =5/7*100 = 71.00 %
Set2:
If A =2, B =5
No of statements Executed: 6
Total no of statements in the source code: 7
Statement coverage =6/7*100 = 85.20 %
Example2:
int result = a+ b;
If (result> 0)
Else
}
Set1:
If A = 3, B = 9
Set2:
If A = -3, B = -9