180 likes | 197 Views
Subject Name: SOFTWARE TESTING Subject Code:10IS65 Prepared By: HARKIRANPREET Department: ISE Date: 25 MARCH 2015. Chapter 2 A Framework for test and analysis. Validation & Verification.
E N D
Subject Name: SOFTWARE TESTING Subject Code:10IS65 Prepared By: HARKIRANPREET Department: ISE Date: 25 MARCH 2015
Validation & Verification Assessing the degree to which a software system actually fulfills its requirements, in the sense of meeting the user real needs is called validation. Verification is checking the consistency of an implementation with a specification. It includes clutter and also checks for well-formedness.
Degrees of freedom • Undesiability:- undesiability of a property S implies that for each verification technique for checking S, there is at least one pathological program for which that technique cannot obtain a correct answer in finite time. • Pessimistic:- it may be pessimistic meaning that it is not guaranteed to accept a program even if the program does possess the property being analysed. • Optimistic:- if it may accept some programs that do not possess the property.
Chapter 3 Basic principles
Sensitivity The sensitivity principle states that it is better to fail every time than sometimes. It says that we should try to make these faults easier to detect by making them cause failure more often. It can be applied in 3 ways: a) at the design level b) at the analysis and testing level c) at the environment level
Redundancy Redundancy is the opposite of independence. If one part of a software architect constraints the content of another, then they are not entirely independent and it is possible to check them for consistency. Checkable redundancy is not limited to program source code.
Restriction When there is no acceptable cheap and effective ways to check a property, sometimes one can change the problem by checking a different, more restrictive property or by limiting the check to a smaller, more restrictive class of programs.
Partition It is often known as divide and conquer principle. Dividing a complex problem into smaller sub problems to be attacked and solved independently is probably the most common human problem solving strategy. Partitioning can be applied at both process and technique levels. They divide the overall analysis into two subtasks: first simplify the system and then prove the property
Visibility and feedback • Visibility means the ability to measure progress or status against goals. • Visibility is closely related to observability, the ability to extract useful information from a software artifact. • Feedback applies to analysis and testing. It applies both to process itself and to individual techniques. • Systematic inspection and walkthrough derive part of their success from feedback.
Chapter 4Test and Analysis Activities within a software Process.
The Quality process • Quality depends on every part of software process, not only on software analysis and testing. • The quality process should be structured for completeness, timeliness and cost effectiveness. • Completeness means that appropriate activities are planned to detect each class of faults. • Timeliness means faults are detected at a point of high leverage. • Cost effectiveness means to the constraint of completeness and timeliness.
Planning and monitoring • Planning is the integral to the quality process and is elaborated & revised through the whole project. • It encompasses both an overall strategy for test and analysis. • It includes objectives of test and analysis activities. • The final analysis and test plan includes additional information about constraints, pass and fail criteria, schedule, deliverables, hardware and software requirements.
Quality goals • Product qualities are the goals of software quality engineering and process qualities are means to achieve goals. • Software product qualities are divided into those that are directly visible to a client and those primarily affect the software development organization. • Properties that are visible to users are called as external properties and others are internal properties. • Other properties are dependability, usefulness etc.
Dependability properties • The simplest of dependability properties is correctness. • Reliability is approximation to correctness. • Availability is an appropriate measure when a failure has some duration in time. • MTBF is another measure of reliability. • Safety and hazards: safety is concerned with preventing certain undesirable behaviors called hazards.
Analysis and testing • Manual inspection and automated analysis can be applied at any development stage. • Inspection can be applied to any document, test plans and test cases. • Test are executed when the corresponding codes are available, but testing activities start earlier.
Improving the process • Long lasting errors are common. • It is important to structure the process for identifying most critical persistant faults . • Tracking them to frequent errors. • Adjusting the development & quality process to elaborate errors. • Feedback mechanisms are most difficult part to implement and is useful in improving the process.
Organizational factors • The development team may attempt to maximize the productivity to the detriment of quality. • The quality assurance team is divided into analysis and testing group responsible for dependability and usability of the system. • Responsibility for security issued are assigned to the infrastructure development group.