Get Started. It's Free
or sign up with your email address
Rocket clouds
Testing by Mind Map: Testing

1. Software inspections and testing

1.1. Software inspections Concerned with analysis of the static system representation to discover problems (static verification or static V&V) ▶ Inspections and reviews analyze and check the system requirements, design models, the program source code, and even proposed system test ▶ May be supplement by tool-based document and code analysis. ▶ don’t need to execute the software to verify it

1.1.1. May be used in requirement specification, software architecture , UML design model , program ,Database schemas .

1.2. Software testing Concerned with exercising and observing product behaviour (dynamic verification) ▶ The system is executed with test data and its operational behaviour is observed.

1.2.1. May be used in program , prototype . ▶ Inspections and testing are complementary and not opposing verification techniques. ▶ Both should be used during the V & V process. ▶ Inspections can check conformance with a specification but not conformance with the customer’s real requirements. ▶ Inspections cannot check non-functional characteristics such as performance, usability, etc.

2. Testing Can reveal the presence of errors NOT their absence

3. Testing is intended to show that a program does what it is intended to do and to discover program defects before it is put into use.

4. Program testing goals

4.1. To demonstrate that the software meets its requirements. thats leads to validation testing

4.1.1. Validation testing. You expect the system to perform correctly using a given set of test cases that reflect the system’s expected use. A successful test shows that the system operates as intended.

4.2. To discover situations in which the behavior of the software is incorrect, undesirable or does not conform to its specification. thats leads to defect testing

4.2.1. Defect testing. The test cases are designed to expose defects. The test cases in defect testing can be deliberately obscure(غامضة عمدًا) and need not reflect how the system is normally used. A successful test is a test that makes the system perform incorrectly and so exposes a defect in the system.

5. Software Faults, Failure and Errors.

5.1. Faults in software are equivalent to design mistakes in hardware.

5.2. Software Fault : A static defect in the software (Programmer mistakes). Ex. The doctor tries to diagnose the root cause, the ailment

5.3. Software Failure : External, incorrect behavior with respect to the requirements or other description of the expected behavior. Ex. A patient gives a doctor a list of symptoms.

5.4. Software Error : An incorrect internal state that is the manifestation(تظهر) of some fault (Refers to difference between Actual Output and Expected output ) Ex. The doctor may look for anomalous internal conditions (high blood pressure, irregular heartbeat, bacteria in the blood stream)

5.5. Bug is used informally Sometimes speakers mean fault, sometimes error, sometimes failure ... often the speaker doesn’t know what it means !

5.6. Spectacular Software Failure

5.6.1. NASA’s Mars lander

5.6.2. THERAC-25 radiation machine

5.6.3. Ariane 5 explosion

5.6.4. Intel’s Pentium FDIV fault

6. Cost of not Testing

6.1. Testing is the most time consuming and expensive part of software development

6.2. Not testing is even more expensive

6.3. If we have too little testing effort early, the cost of testing increases

6.4. Planning for testing after development is prohibitively expensive

7. Testing is part of a more general Verification and Validation

7.1. Verification ▶"Are we building the product right?”. ▶ The software should conform to its specification ▶The aim of verification is to check that the software meets its stated functional and non-functional requirements.

7.2. Validation ▶ "Are we building the right product?”. ▶ The software should do what the user really requires. ▶ The aim of validation is to ensure that the software meets the customer’s expectations.

8. Test cases

8.1. is a set of test inputs, execution conditions, and expected results developed for a particular requirement or method.

9. Stages of testing

9.1. Development testing, where the system is tested during development to discover bugs and defects.

9.1.1. Development testing includes all testing activities that are carried out by the team developing the system. Unit testing where individual program units or object classes are tested. Unit testing should focus on testing the functionality of objects or methods. Component testing where several individual units are integrated to create composite components. Component testing should focus on testing component interfaces. System testing, where some or all of the components in a system are integrated and the system is tested as a whole. System testing should focus on testing component interactions.

9.2. Release testing, where a separate testing team test a complete version of the system before it is released to users.

9.2.1. Release testing is a form of system testing

9.2.2. Release testing is to check that the system meets its requirements and is good enough for external use

9.2.3. Release testing is usually a black-box testing process where tests are only derived from the system specification

9.2.4. Release testing, therefore, has to show that the system delivers its specified functionality, performance and dependability, and that it does not fail during normal use.

9.2.5. Performance testing part of release testing Stress testing is a form of performance testing where the system is deliberately overloaded to test its failure behaviour.

9.3. User testing, where users or potential users of a system test the system in their own environment.

9.3.1. stage in the testing process in which users or customers provide input and advice on system testing

9.3.2. Types of user testing Alpha testing Users of the software work with the development team to test the software at the developer’s site. Beta testing A release of the software is made available to users to allow them to experiment and to raise problems that they discover with the system developers. Primarily for software products that are used in many different environments. Acceptance testing Customers test a system to decide whether or not it is ready to be accepted from the system developers and deployed in the customer environment. Primarily for custom systems. Agile only uses alpha testing because the release is not available in public acceptance testing in agile but it is not as a separated activity.

10. Test-Driven Development

10.1. is an approach to program development in which you inter-leave testing and code development

10.2. Tests are written before code and ‘passing’ the tests is the critical driver of development.

10.3. You develop code incrementally, You don’t move on to the next increment until the code that you have developed passes its test.

10.4. Test-Driven activities

10.4.1. Start by identifying the increment of functionality that is required. This should normally be small and implementable in a few lines of code.

10.4.2. Write a test for this functionality and implement this as an automated test.

10.4.3. Run the test, along with all other tests that have been implemented. Initially, you have not implemented the functionality so the new test will fail.

10.4.4. Implement the functionality and re-run the test.

10.4.5. Once all tests run successfully, you move on to implementing the next chunk of functionality.

10.5. Benefits of test-driven development

10.5.1. Code coverage

10.5.2. Regression testing Regression testing is testing the system to check that changes have not ‘broken’ previously working code.

10.5.3. Simplified debugging

10.5.4. System documentation System testing by the development team should focus on discovering bugs in the system (defect testing).

11. Testing Techniques

11.1. Black-box testing

11.1.1. Looking at the program from an external point of view and deriving test cases based on the specification

11.1.2. The only criterion upon which the program is judged is if it produces the correct output for a given input.

11.2. White-box testing

11.2.1. Testing based on analysis of internal logic (design, code, etc.),(But expected results still come from requirements.)

11.2.2. White-box testing techniques apply primarily to lower levels of testing (e.g., Unit and Component).

11.2.3. structural testing

11.2.4. White-bos testing Techniques 1. Control flow testing ▶ The control structure of a program can be represented by the Control Flow Graph (CFG). 2. Data flow testing.