Date post: | 05-Apr-2018 |
Category: |
Documents |
Upload: | krishna-gupta |
View: | 215 times |
Download: | 0 times |
of 45
7/31/2019 Software+Quality+Assur
1/45
Software QualityAssurance
Banking System
Ruchika Bajaj
Taranpreet Kaur
7/31/2019 Software+Quality+Assur
2/45
RequirementAnalysis
7/31/2019 Software+Quality+Assur
3/45
Introduction Designed to simplify bank account keeping
Implemented with the objective to computerize
the handbook account maintenance system.
Aims at reducing the workforce, management andclerical task.
It increases the reliability and portability of thedatabase storage.
7/31/2019 Software+Quality+Assur
4/45
PurposeThe current manual system includes the following
problem:
Account maintenance as paperwork is acumbersome task.
Each transaction needs access to large databasemaking transaction slow and records difficult tomaintain.
Generating monthly interest and adding it to eachaccount manually is very difficult.
Modifying the details of customer is a largeprocess and closing an account and reissuing the
account number may lead to chaos.
7/31/2019 Software+Quality+Assur
5/45
Purpose (cont..) No backup can be maintained as the data is large
and duplication of data consumes lot of time.
Large work force required to do small clerical
tasks. Analysis on data and access to database tedious.
Maintaining year books requires large storage
area.
7/31/2019 Software+Quality+Assur
6/45
Overview
New Account
Display Account Details
Transaction
Monthly report
Edit Account
Banking System
7/31/2019 Software+Quality+Assur
7/45
7/31/2019 Software+Quality+Assur
8/45
Representation Of ProductFunctions
Open New Account
Date
Account Number
Name
Address
Name of Verifying Person
Initial Balance
7/31/2019 Software+Quality+Assur
9/45
Representation Of ProductFunctions
Display Account Details
Date
Account Number
Name
Address
Current Balance
Monthly Report
7/31/2019 Software+Quality+Assur
10/45
Representation Of ProductFunctions
Perform Transaction
Deposit
Withdrawal
AmountMode ofPayment
(cash/cheque)
7/31/2019 Software+Quality+Assur
11/45
Assumptions and ValidationChecks The account numbers should be generated
automatically.
While opening account, name and address should
not be left blank. Initial deposit should not be less than Rs. 1000.
Transaction date should be the current date.
7/31/2019 Software+Quality+Assur
12/45
7/31/2019 Software+Quality+Assur
13/45
7/31/2019 Software+Quality+Assur
14/45
7/31/2019 Software+Quality+Assur
15/45
Context Level Diagram
BankingSystem
User Accounts
MonthlyReportDisplay
Control(management)
Perform transactions
Opensaccount
Inquires accountstatus
maintains Adds interest
Generatesreports
Command +data
7/31/2019 Software+Quality+Assur
16/45
Risk Analysis
7/31/2019 Software+Quality+Assur
17/45
Steps To Follow
Identify the risksIdentify the risks
Analyse the risksAnalyse the risks
Evaluate the risksEvaluate the risks
Treat the risksTreat the risks
7/31/2019 Software+Quality+Assur
18/45
Risk Evaluation
Extreme Very high Moderate Low Negligible
Almostcertain
Severe Severe High Major Moderate
Likely Severe High Major Significant Moderate
Moderate High Major Significant Moderate Low
Unlikely Major Significant Moderate Low Very low
Rare Significant Moderate Low Very low Very Low
7/31/2019 Software+Quality+Assur
19/45
7/31/2019 Software+Quality+Assur
20/45
Testing
Black Box Testing
7/31/2019 Software+Quality+Assur
21/45
Equivalence Partitioning
Test case 1 2 3 4 5
Input (Day) -1 12 45 14 14
Input (Month) 5 5 5 0 11
Input (Year) 2009 2009 2009 2009 2009
Partition tested D < 1 0 < D < 32 D > 31 M < 1 0 < M
7/31/2019 Software+Quality+Assur
22/45
Equivalence Partitioning
Test case 6 7 8 9 10
Input (Day) 14 14 14 14 a
Input (Month) 15 5 5 5 b
Input (Year) 2009 2008 2009 2011 c
Partition tested M > 12 Y < 2009 Y = 2009 Y > 2009 alphabets
Expected Output ErrorMessage
ErrorMessage
Valid ErrorMessage
Error Message
Transaction (Date) (Cont)
7/31/2019 Software+Quality+Assur
23/45
Equivalence Partitioning
Test case 11 12 13
Input (Day) 14.5 { null
Input (Month) 15.5 ; null
Input (Year) 2009.5 # null
Partition tested realnumber
specialcharacters
null
Expected Output ErrorMessage
ErrorMessage
ErrorMessage
Transaction (Date) (Cont)
7/31/2019 Software+Quality+Assur
24/45
Equivalence Partitioning
Test case 1 2 3 4 5
Input (Type) D d W w e
Partition tested deposit deposit withdrawal withdrawal Any otheralphabet
Expected Output Ask formode
Ask formode
Ask for modeAsk for modeError Message
Transaction (Type)
7/31/2019 Software+Quality+Assur
25/45
Equivalence Partitioning
Test case 6 7 8 9 10
Input (Type) % 14 35.6 Daf null
Partition tested specialcharacter
integer real number More than 1characters
null
Expected Output ErrorMessage
ErrorMessage
ErrorMessage
Error Message ErrorMessage
Transaction (Type) (Cont)
7/31/2019 Software+Quality+Assur
26/45
Equivalence Partitioning
Test case 1 2 3 4 5
Input (Mode) C c Q q e
Partition tested cash cash cheque cheque Any otheralphabet
Expected Output Ask foramount
Ask foramount
Ask foramount
Ask foramount
Error Message
Transaction (Mode)
7/31/2019 Software+Quality+Assur
27/45
Equivalence Partitioning
Test case 6 7 8 9 10
Input (Mode) % 14 35.6 Daf null
Partition tested specialcharacter
integer real number More than 1characters
null
Expected Output ErrorMessage
ErrorMessage
ErrorMessage
Error Message ErrorMessage
Transaction (Mode) (Cont)
7/31/2019 Software+Quality+Assur
28/45
Equivalence Partitioning
Test case 1 2 3 4 5
Input (Amount) 9 5000 60000 9 70000
Input (Type) d d d w w
Partition tested A < 10 9 50000 A < 10 Greaterthan
minimumExpected Output Error
MessageMake changes
in accountError
MessageError
MessageError
Message
Transaction (Amount)
7/31/2019 Software+Quality+Assur
29/45
7/31/2019 Software+Quality+Assur
30/45
Equivalence Partitioning
Test case 1 2 3 4 5
Input (Month) -1 6 15 9.5 g
Partition tested M < 1 0 < M < 13 M > 12 real numbers alphabets
Expected Output ErrorMessage
Valid ErrorMessage
ErrorMessage
Error Message
Monthly Report (Month)
7/31/2019 Software+Quality+Assur
31/45
Equivalence Partitioning
Test case 6 7
Input (Month) ^ Null
Partition tested specialcharacter
Null
Expected Output Error
Message
Error
Message
Monthly Report (Month) (Cont..)
7/31/2019 Software+Quality+Assur
32/45
Cause Effect Graph For opening an account
Causes:
C1: Valid name is entered
C2: Valid address is entered
C3: Initial amount deposited > Rs.1000
C4: Verifying person present
Effects:
E1: New account is opened
E2: Account not opened
7/31/2019 Software+Quality+Assur
33/45
Cause Effect Graph
E1 = C1 ^ C2 ^ C3 ^ C4
E2 = ~C1 V ~C2 V ~C3 V ~C4
C1
C2
C3
C4
E1
E2
7/31/2019 Software+Quality+Assur
34/45
Decision TableC1 T T T T T T T T F F F F F F F F
C2 T T T T F F F F T T T T F F F F
C3 T T F F T T F F T T F F T T F F
C4 T F T F T F T F T F T F T F T F
E1 T F F F F F F F F F F F F F F F
E2 F T T T T T T T T T T T T T T T
7/31/2019 Software+Quality+Assur
35/45
Test CasesName Address Amount Verifying Person Account Status
Ruchika F-59, Delhi 3100.00 Present Opened
Taranpreet G-45, Delhi 2955.00 Not present Not opened
Rajni Kohat, Delhi 500.00 Present Not opened
Simmi A12,Pitampura Null Not present Not opened
Manisha null 12555.00 Present Not openedBarkha 123456.788 2222.00 Not present Not opened
Reena #$****** Babc Present Not opened
Vashita null ,,*()! Not present Not opened
Null 36B, Noida 9999.00 Present Not opened
1234 K12, delhi 6565.00 Not present Not opened#**** F-44, preetvhr Null Present Not opened
-122 L12, gurgaon 0000 Not present Not opened
0000 null 12345.00 Present Not opened
99.345 00000000000 54321.00 Not present Not opened
,,,!!!!! ######### Abcdef Present Not opened
null aaaaaaaaaaaa ##### Not present Not opened
7/31/2019 Software+Quality+Assur
36/45
Testing
White Box Testing
7/31/2019 Software+Quality+Assur
37/45
White Box Testing
Statement and Branch Coverage
Linear Code Sequence and Jump (LCSAJtesting)
7/31/2019 Software+Quality+Assur
38/45
Source Code1. void display_account(void)2. {
3. statements
4. if(t_accno==0)
5. return;
6. clrscr();
7. if(!found_account_ini(t_accno))
8. {
9. statements
10. return;
11. }
12. box_for_display(t_accno);
13. while(fread(&acc,sizeof(acc),1,fb)>0)
14. {
15. if(acc.accno==t_accno)
16. {
17. statements
18. if(acc.transaction== 'D'||acc.transaction=='d')
19. {
20. statements21. }
22 else
7/31/2019 Software+Quality+Assur
39/45
22. else
23. {
24. statements
25. }
26. statements
27. if(row>23)28. {
29. statements
30. }
31. }
32. }
33. statements
34. for(j=1;j
7/31/2019 Software+Quality+Assur
40/45
A
B
D
E
G
H
F
I
J
K
L M
N
O
P Q
R
S
T
U
VC W
FLOW GRAPH
Statement coverage
1. A-B-C : 3/23 = 13.04%
2. A-B-D-E-F-C : 6/23 = 26.08%
3. A-B-D-E-G-H-R-S-T-U-V-C: 12/23 = 52.17%
Branch coverage
1. A-B-C : 1/18 = 5.5%
2. A-B-D-E-F-C : 2/18 = 11.11%
3. A-B-D-E-G-H-R-S-T-U-V-C: 7/18 = 38.88%
7/31/2019 Software+Quality+Assur
41/45
Source Code
7/31/2019 Software+Quality+Assur
42/45
Source Code
7/31/2019 Software+Quality+Assur
43/45
LCSAJ TestingControl Flow Jump Required Condition
16 17 No Account number == 0
16 18 Yes Account number != 0
19 20 No Account Found
19 25 Yes Account not found
26 27 No Data exists in file
26 71 Yes No data present in file
28 29 No Account number matches with the entered account no. for transaction
28 70 Yes Account no. not matched with the entered account no. for transaction
70 26 Yes Always executed
43 44 No Transaction==D || Transaction == d
43 50 Yes Transaction!=D || Transaction != d
61 62 No Row>23
61 69 Yes Row
7/31/2019 Software+Quality+Assur
44/45
LCSAJ Testing Startpoints: 2,18,25,26,50,69,70,71,73,75,93 Triplets:
2,16,18 18,19,25 25,26,71 26,26,71 50,61,69
2,19,25 18,26,71 25,28,70 26,28,70 50,74,73.
2,26,71 18,28,70 25,70,26 26,70,26 50,73,75
2,28,70 18,70,26 25,43,50 26,43,50 50,87,93
2,70,26 18,43,50 25,61,69 26,61,69
2,43,50 18,61,69 25,74,73 26,74,732,61,69 18,74,73 25,73,75 26,73,75
2,74,73 18,73,75 25,87,93 26,87,93
2,73,75 18,87,93
2,87,93
7/31/2019 Software+Quality+Assur
45/45
Thank You!!