When planning the basic path testing plan of the new taximeter module, Softw
9 When planning the basic path testing plan of the new taximeter module, Softw
a flow chart and a program flow graph for the taxi fare calculation process were prepared. Each figure represents a calculation process that includes five
are tes
decisions, as shown in Figure 9.3.
A review of the ITS flow chart and program flow graph demonstrates the difference between path testing and basic path testing as well as com-
ting – str
paring the testing requirements of path coverage with those of line coverage. As mentioned above, full path coverage requires that all the possible paths be executed at least once. In the ITS flow chart (Figure 9.3), 24 differ- ent paths may be indicated. In other words, in order to achieve full path
a tegies
coverage of the software module we have to prepare at least 24 test cases, which we list in Table 9.3.
Table 9.3: The Imperial Taxi example – the full list of paths No.
The path 1 1-2-3-5-6-8-9-11-12-17
2 1-2-3-5-6-8-9-11-13-14-15-17 3 1-2-3-5-6-8-9-11-13-14-16-17 4 1-2-3-5-6-8-10-11-17 5 1-2-3-5-6-8-10-11-13-14-15-17 6 1-2-3-5-6-8-10-11-13-14-16-17 7 1-2-3-5-7-8-9-11-12-17 8 1-2-3-5-7-8-9-11-13-14-15-17 9 1-2-3-5-7-8-9-11-13-14-16-17 10 1-2-3-5-7-8-10-11-12-17 11 1-2-3-5-7-8-10-11-13-14-15-17 12 1-2-3-5-7-8-10-11-13-14-16-17 13 1-2-4-5-6-8-9-11-12-17 14 1-2-4-5-6-8-9-11-13-14-15-17 15 1-2-4-5-6-8-9-11-13-14-16-17 16 1-2-4-5-6-8-10-11-12-17 17 1-2-4-5-6-8-10-11-13-14-15-17 18 1-2-4-5-6-8-10-11-13-14-16-17 19 1-2-4-5-7-8-9-11-12-17 20 1-2-4-5-7-8-9-11-13-14-15-17 21 1-2-4-5-7-8-9-11-13-14-16-17 22 1-2-4-5-7-8-10-11-12-17 23 1-2-4-5-7-8-10-11-13-14-15-17 24 1-2-4-5-7-8-10-11-13-14-16-17
1 (a) Flow chart of the module
Charge the minimal fare
9.4 White bo
x tes
WT ⬎ 3
5 WT ⱕ 3
ting
Waiting time
S⬎ 1
8 S ⱕ1
No. of suitcases
Regular client?
12 Yes
14 No
Night journey? 15 16
17 Print receipt
3 R1 4
(b) Program flow graph of the 6 7 module
Figure 9.3: The ITS taxi fare calculation process – flow chart and program flow graph
194 In contrast, the program flow graph allows us to observe that full line coverage of the ITS software module can be reached by inspecting the mini-
9 mum number of paths – a total of three – as listed in Table 9.4. Softw
The proportion of test cases required to test the system by full line cov- erage of three test cases (by basic path testing) versus full path coverage of
are tes
24 test cases is 1:8! This ratio grows rapidly with program complexity. Support for the basic path testing strategy is provided by McCabe’s cyclomatic complexity metrics, which besides being software complexity
ting – str
metrics also serve to give an upper limit to the number of test cases needed for full line coverage.
Parts
» Softw ar e Quality Assurance
» Software errors, faults and failures
» W According to the IEEE (1991), software engineering is defined as follows:
» IEEE (1991) “IEEE Std 610.12-1990 – IEEE Standard Glossary of Software
» Product revision software quality factors
» The client is not the only party interested in thoroughly defining the requirements Softw
» 4 Consider McCall’s model and the Deutsch and Willis model. Softw
» Introduction: the CFV Project completion celebration
» Implementation of a contract review for a major proposal
» Appendix 5A Proposal draft reviews – subjects checklist
» Elements of the quality plan
» Development plans and quality plans for internal projects
» The software development life cycle (SDLC) model
» The decision about the number of quality assurance activities to be applied is affect- Integr
» Participants of peer reviews
» The efficiency of peer reviews
» R 1. Biffi, S. (2000) “Using inspection data for defect estimation”, IEEE Software,
» 2 Software testing objectives Direct objectives
» When planning the basic path testing plan of the new taximeter module, Softw
» 4.4 McCabe’s cyclomatic complexity metrics tegies
» Output correctness tests are, in most cases, among the tests that consume the Softw
» Revision factor testing classes
» Advantages and disadvantages of black box testing
» Perry, W. E. and Rice, R. W. (1997) Surviving the Top Ten Challenges of Softw
» 5 The main types of automated tests
» The “Tick Ticket” is a new Internet site planned to meet the following
» Advantages and disadvantages of automated tests
» Foundation 1: software package quality
» Maintenance contract review components
» SQA tools for corrective maintenance
» SQA infrastructure components for software
» Introduction: the HealthSoft case of
» Types of external participants
» Choice of external participants
» Review of deliverables (documents) and acceptance tests
» Some lower CASE and integrated CASE tools can automatically generate CAS
» The contribution of CASE tools to software product s
» The contribution of CASE tools to improved project management
» 3 SQA work instructions subjects – examples Departmental work instructions
» Do you agree with this statement? List your arguments. Proc
» Development of a template infrastructure naturally centers on the work of a
» The organizational framework for preparing, implementing and updating checklists
» Delivery of training and certification programs
» 6.1 Development of solutions
» Organizing for preventive and corrective actions
» Computerized tools for managing software configuration
» Definitions and objectives lled documents
» The components of project progress control
» Project resources allocation plan – for activities and software modules,
» Software process quality metrics
» Statistical analysis of metrics data
» An extended model for cost of software quality
» Actions taken in response to the model’s findings
» ISO 9000-3 quality management system: guiding principles
» At this point it is worthwhile to quickly review some success stories report-
» Paulk, M. C. (1999) “Analyzing the conceptual relationship between ISO/IEC gement
» 2 Lion Quality Software (LQS) Ltd – software quality policy The Company’s Quality Goal
» SQA trustees and their tasks
» SQA development and maintenance functions:
» Participation in SQA forums may be closed or open. Participants of open SQA The
Show more