• No results found

Software Testing part2

N/A
N/A
Protected

Academic year: 2020

Share "Software Testing part2"

Copied!
34
0
0

Loading.... (view fulltext now)

Full text

(1)
(2)

Software Testing

Testing is a process of

executing a

(3)

Types of Testing

Manual Testing

(4)

Manual Testing

Manual testing is the process of manually

testing software for defects.

It requires a tester to play the role of an end

(5)

Drawbacks of Manual Testing

Time consuming.

More resources required. Human Errors

Repetition of the Task Tiredness

Simultaneous auctions are not possible

(6)

Automation Testing

Automation testing is an Automatic technique

where the tester writes scripts by own and uses suitable software to test the software.

Automation testing uses automation tools to

write and execute test cases, no manual

(7)

Validation

&

(8)

Validation

The process of evaluating the final product to

check whether the software meets the customer expectations and requirements.

Validation: "Is the right software being

(9)

Verification

Verification is the process of confirming if the

software is meeting the business requirements.

Verification: ”Is the software being developed in

(10)

Black-box testing

&

(11)

Black-box testing

It is carried out to test functionality of the

program.

It is also called ‘Behavioral’ testing.

if the output matches with the desired results,

(12)

Black-box testing

In this testing method,

the design

(13)

White-box testing

It is conducted to test program and its

implementation, in order to improve code

efficiency or structure.

It is also known as ‘Structural’ testing.

In this testing method, the design and

(14)

Organizing for software testing

or

Software

testing strategy

The ITG is part of the software development

project team in the sense that it becomes

(15)
(16)

Unit Testing

It begins at the vortex of the spiral and

concentrates on each unit of the software as implemented in source code.

It falls under the class of white box testing.

It is often done by the programmer to test that

(17)

Integration testing

Integration testing is a testing in which a group of components

are combined to produce output.

Also, the interaction between software and hardware is tested

in integration testing if software and hardware components have any relation.

It may fall under both white box testing and black box testing.

In integration testing the focus is on design and the

(18)

Validation Testing

Validation testing where requirements established

as part of software requirements analysis are

validated against the software that has been constructed.

Validation testing provides final assurance that

software needs all functional, behavioral and performance requirements.

Black-box testing techniques are used exclusively

(19)

System Testing

System Testing is a black box testing technique

performed to evaluate the complete system against specified requirements.

In System testing, the functionalities of the

(20)
(21)

Path Testing

In software testing, there are many paths

between the entry and exit of a software program.

The method was first proposed by McCabe in

1980's.

Path testing is designed to execute all or

(22)

Below are the steps of this technique:

Draw a control flow graph.

Determine Cyclomatic complexity. Find a basis set of paths.

(23)

Step 1: Draw a control flow graph

On a control flow graph, we can see that:

Arrows or edges represent flows of

control.

Circles or nodes represent actions. Areas bounded by edges and nodes are called regions.

(24)
(25)

Step 2: Determine Cyclomatic complexity

Cyclomatic complexity is a software metric

used to indicate the complexity of a program.

There are several different methods to

(26)

1. Cyclomatic complexity =

edges - nodes + 2p

(27)

2. Cyclomatic complexity= Number of

Predicate Nodes + 1

(28)

3. Cyclomatic complexity =number of regions

in the control flow graph

(29)

Step 3: Find a basis set of paths

The Cyclomatic complexity tells us the number

(30)

In the example, we

have 3 paths,

and our basis set of

paths is:

Path 1

: 1, 2, 3, 5, 6, 7.

Path 2

: 1, 2, 4, 5, 6, 7.

(31)

Step 4: Generate test cases for each path

After determining the basis set of path, we can

generate the test case for each path.

Usually we need at least one test case to cover

one path.

In the example, however, Path 3 is already

(32)

Graph matrix:

Graph matrix is used to develop software tool that in

turn helps in carrying 'out basis path testing.

It is defined as a data structure used to represent the

flow graph of a program in a tabular form.

This matrix is also used to evaluate the control structures present in the program during testing.

Graph matrix is a square matrix of the size NxN,

(33)
(34)

References

Related documents

1) The versatility and low cost of wet welding makes this method highly desirable. 2) Other benefits include the speed. With which the operation is carried out. 3) It is less

Such agreements are often defined by service level agreements (SLAs), which indicate the quality of service that the provider will guarantee, or peering contracts, which define

In this section we introduce primitive recursive set theory with infinity (PRSω), which will be the default base theory for the rest of this thesis (occasionally exten- ded by

2 Development of Research and Technology Center, Deputy of Research and Technology, Ministry of Health and Medical Education, Tehran, IR Iran 3 Department of Community Medicine,

The ten most common solid organ cancers in the US are: prostate, breast, lung and bronchus, colon and rectal, urinary bladder, thyroid, kidney and renal pelvis, uterine corpus,

The most common ingredients used in frozen desserts are milk, heavy cream, eggs, granulated sugar, and fruit purées, but there are others that can improve the fi nal texture and

In addition, studies suggest that virtual volunteers are newer to volunteering and more likely to be found if volunteer agencies approach them directly and ask for their help,

for recruitment and selection, 3/5 of the people said that the company recruits the employee from the external sources and 1/5 of the people prefer internal source of