l software testing

31
SOFTWARE TESTING

Upload: faber-d-giraldo

Post on 30-Nov-2014

1.017 views

Category:

Technology


0 download

DESCRIPTION

 

TRANSCRIPT

Page 1: L   software testing

SOFTWARE TESTING

Page 2: L   software testing

TEST Activity in which a system or any of its components are running with previously specified circumstances, results are observed, recorded and performed an assessment of some aspect Test provides guidance on evaluating the quality of the product.

Page 3: L   software testing

The purposes of the Test discipline are as follows:

•To find and document defects in software quality •To generally advise on perceived software quality •To prove the validity of the assumptions made in the design and requirement specification through concrete demonstration •To validate that software product functions as designed •To validate that the requirements have been implemented appropriately

Page 4: L   software testing

Basic Definitions • Error An error is a mistake, misconception, or misunderstanding on the part of a software developer. • Defects (Faults) A defect (fault) is introduced into the software as the result of an error. It is an anomaly in the software that may cause it to behave incorrectly, and not according to its specification. •Failures A failure is the inability of a software system or component to perform its required functions within specified requirements or specification.

Page 5: L   software testing

When the analyst or the developer makes an error (or mistake) He/She will produce a fault. Faults are also called defects or bugs.

A defect is a flaw in a component or system that can cause it to fail. Many defects hide in the code, but are never discovered. The moment they are discovered we speak of a failure, indicating that the systems does not react as we expect.

Findings indicate an observed difference between expected and implemented system behavior that can jeopardize the anticipated goal. This definition includes both the experience of the tester and the anticipated business goal. A finding can originate from a test fault, a fault in the test base, or a bug in the code.

Page 6: L   software testing

Realities

• The extensive testing of the software are impractical (you can't test all possibilities of operating even in simple programs). This is impossible from all points of view: human, economic and even math.

• The goal of the tests is to detect defects in the software ... Discover an error is a successful test

Page 7: L   software testing

The LifeCycle of Testing

Page 8: L   software testing

Testing levels

Page 9: L   software testing

Testing levels

Source: Advanced Software Testing—Vol. 3 - Guide to the ISTQB Advanced Certification as an Advanced Technical Test Analyst . http://www.istqb.org/

Page 10: L   software testing

Testing levels

Source: Advanced Software Testing—Vol. 3 - Guide to the ISTQB Advanced Certification as an Advanced Technical Test Analyst. http://www.istqb.org/

Page 11: L   software testing

Testing levels

Page 12: L   software testing

Approach of Testing

Page 13: L   software testing

Black Box approach (Functional)

• There is no knowledge of its inner structure (i.e., how it works).

• The tester only has knowledge of what it does. • The size of the software-under-test using this

approach can vary from a simple module, member function, or object cluster to a subsystem or a complete software system.

Page 14: L   software testing

Black Box approach (Functional)

• The description of behavior or functionality for the software-under-test may come from a formal specification, an Input/Process/ Output Diagram (IPO), or a well-defined set of pre and post conditions.

• Another source for information is a requirements specification document that usually describes the functionality of the software-under-test and its inputs and expected outputs

Page 15: L   software testing

Black Box approach (Functional) The tester provides the specified inputs to the

software-under-test, runs the test and then determines if the outputs produced are equivalent to those in the specification

Page 16: L   software testing

White Box approach

• Focuses on the inner structure of the software to be tested.

• To design test cases using this strategy the tester must have a knowledge of that structure. The code, or a suitable pseudo code like representation must be available.

• The tester selects test cases to exercise specific internal structural elements to determine if they are working properly

Page 17: L   software testing

White Box approach

• Since designing, executing, and analyzing the results of white box testing is very time consuming, this strategy is usually applied to smaller-sized pieces of software such as a module or member function.

• White box testing methods are especially useful for revealing design and code-based control, logic and sequence defects, initialization defects, and data flow defects.

Page 18: L   software testing
Page 19: L   software testing

Types of Test Quality Dimension/ Quality Risk Type of Test

Functionality Function test Security test Volume test

Usability Usability test

Reliability

Benchmark test Integrity test Structure test

Stress test

Performance Contention test

Load test Performance profile

Supportability Configuration test Installation test

Page 20: L   software testing

Regression Test Tests to be run on a modified program to ensure that

changes are correct and don't affect other parts of software that have not changed.

Each time we receive a new version of software should run our regression tests.

Page 21: L   software testing

Test Ideas – Test Case • Test Idea: expression that identifies a test that can be

helpful. The ideas are derived from Models, Specifications and Storm’s Idea

• Test Case: Set of entries, performance conditions and expected results developed for a particular purpose.

An idea of testing is different of a test case: the Test idea does not contain the specification of test as such, only the essence of the test.

Test ideas produce test cases.

Page 22: L   software testing

Test Case • Test cases must be written with sufficient detail to enable that a new

team member can begin working quickly to run tests and find defects.

• Each test case should determine the result of the expected output, which is compared with the result obtained.

• The programmer must try to avoid test their own programs as they want (consciously or unconsciously) to prove that it works fine. In addition, it's normal that the situations that he/she forgot to consider when creating the program are again forgotten to create test cases

• Clearly identify the functionality that you want to test. • Using test ideas as a basis for generating interesting scenarios to

test

Page 23: L   software testing

Test Plan • Defines the goals and objectives of testing

within the scope of the iteration (or project), the items being targeted, the approach to be taken, the resources required and the deliverables to be produced (RUP).

• A test plan describes the strategies, resources and planning of the test

Page 24: L   software testing

Defects Reports Defects (faults) could be ignored or postponed, according to

the way they are written. This can be: - Difficult to understand - Too complicated to solve Keys to develop good reports of defects • First, describe the problem. • Then, describe the steps necessary to reproduce the

problem: neither more nor less. • Describe the wrong behavior and if necessary, enter what

should have happened.

Page 25: L   software testing

Defects Reports Keys to develop good reports of defects:

(Continued) • Describe the environment variables and other

details about the configuration of the machine where the problem is happening.

• If you encounter two problems, report two defects • Don’t use expressions such as "failure" or "not

working". We should be more explicit.

Page 26: L   software testing

Defects Reports A typical report includes defects: (Continued) • Priority • Report type (Error, suggestion, documentation

error, design problem) • Impact on the customer • Keywords • Description of the problem (steps to reproduce).

Page 27: L   software testing

Ten principles of Tester

Page 28: L   software testing

Testing principles • Tests help prevent deficiencies • Tests are based on risks • Testing should be planned • Testing is a creative and hard work • It's impossible to test all entries • You can't test all the roads • It's impossible to test the correction of an error using

logic only. • The purpose of finding problems to fix it!

Page 29: L   software testing
Page 30: L   software testing

There is inevitably an adversarial relationship between testers and developers. This is no bad thing: developers are trying to get something working and the testers are trying to show it doesn’t. The keys to success are patience, a sense of humor, clear definitions of responsibilities, a plan, and good staff. So what else is new?

These roles depend on two distinctions being drawn: 1. Between the quality assurance and quality control roles of

the QA department, and the testers 2. Between the testing and development roles

Page 31: L   software testing

Testing and Debug