Test Design Techniques презентация

Agenda Static techniques Dynamic Techniques Structure-Based Experience-Based Specification-Based Choosing a Test Design Technique Homework

Слайд 1Test Design Techniques

September 2014


Слайд 2Agenda
Static techniques
Dynamic Techniques
Structure-Based
Experience-Based
Specification-Based
Choosing a Test Design Technique
Homework


Слайд 3Trainings’ Content

Test Design Techniques Selection
Test Analysis


Test Items Designing


Слайд 4Test Design Techniques
Categories

Static: Static techniques test software without executing it



Dynamic: Testing

that involves the execution of the software of a component or system.







Слайд 5Static Techniques
Static Techniques
Static Analysis

Control Flow Structure
Data Flow Structure
Informal Reviews
Walkthroughs
Technical Reviews
Inspections







Слайд 6Specification-Based Techniques

Dynamic Techniques
Structure – Based
Experience – Based
Specification-Based
Equivalence Partitioning
State Transition
Decision

Tables

Use Case Testing

Boundary Values Analysis

Error Guessing

Exploratory Testing

Statement

Decision

Condition

Multiple Condition




Testing, either functional or non-functional, without reference to the internal structure of the component or system. These are also called black-box techniques.

These are also called white-box or structural techniques.


Слайд 7Structure-Based Techniques

Dynamic Techniques
Structure – Based
Experience – Based
Specification-Based
Equivalence Partitioning
State Transition
Decision

Tables

Use Case Testing

Boundary Values Analysis

Error Guessing

Exploratory Testing

Statement

Decision

Condition

Multiple Condition




Procedure to derive and/or select test cases based on an analysis of the internal structure of a component or system. These are also called while-box techniques.


Слайд 8Experience-Based Techniques

Dynamic Techniques
.
Structure – Based
Experience – Based
Specification-Based
Equivalence Partitioning
State Transition
Decision

Tables

Use Case Testing

Boundary Values Analysis

Error Guessing

Exploratory Testing

Statement

Decision

Condition

Multiple Condition




Procedure to derive and/or select test cases based
on the tester’s experience, knowledge and intuition.


Слайд 9Specification-Based Techniques


Слайд 10Equivalence Partitioning
Equivalence partitioning (EP) – A black box test design technique

in which test cases are designed to execute representatives from equivalence partitions.
Idea: Divide (i.e. to partition) a set of test conditions into groups or sets that can be considered the same (i.e. the system should handle them equivalently), hence equivalence partitioning. In principle test cases are designed to cover each partition at least once.
Example: Bank represents new deposit program for corporate clients. According to the program client has ability to get different %, based on amount of deposited money. Minimum which can be deposited in $1, maximum is – $999. If client deposits less than $500 it will have 5% of interests. In case the amount of deposited money is $500 and higher, then client gets on 10% of interests more.

Слайд 11Boundary Values Analysis
Boundary value analysis (BVA): A black box test design

technique in which test cases are designed based on boundary values.
Boundary value is an input value or output value which is on the edge of an equivalence partition or at the smallest incremental distance on either side of an edge, for example the minimum or maximum value of a range.
Idea: Divide test conditions into sets and test the boundaries between these sets. Tests should be written to cover each boundary value.
Example: Bank represents new deposit program for corporate clients. According to the program client has ability to get different %, based on amount of deposited money. Minimum which can be deposited in $1, maximum is – $999. If client deposits less than $500 it will have 5% of interests. In case the amount of deposited money is $500 and higher, then client gets on 10% of interests more.


Слайд 12Decision Tables
Decision table – A table showing combinations of inputs and/or

stimuli (causes) with their associated outputs and/or actions (effects), which can be used to design test cases.
Idea: Divide test conditions into constraints, which could get positive or negative meanings, and rules which identify output based on values of conditions. While analyzing each possible variant of positive and negative meanings identify output or set of outputs for each variant based on the rules. Only combinations of these positive and negative meanings, which uniquely identify decisions that are made, should be covered by tests.
Example: If you hold an 'over 60s' rail card, you get a 34% discount on whatever ticket you buy. If you hold family rail card and you are traveling with a child (under 16), you can get a 50% discount on any ticket. If you are traveling with a child (under 16), but do not have family rail card, you can get a 10% discount. You can use only one type of rail card.

Слайд 13Decision Tables
- 'over 60s' rail card – 34%
- family rail card

and traveling with a child – 50%
- traveling with a child, but do not have family rail card – 10%
- only one type of rail card can be used



Слайд 14State Transition
State transition testing – A black box test design technique

in which test cases are designed to execute valid and invalid state transitions.
State transition – A transition between two states of a component or system.
Idea: Design diagram that shows the events that cause a change from one state to another. Tests should cover each path starting from the longest state combination.
Example: Client of the bank would like to take money from bank account using cash machine. To get money he should enter valid Personal Identity Number (PIN). In case of 3 invalid tries, cash machine eats the card.

Start

Access to account

Eat card

Wait for Pin

1st try

Enter

Pin Ok

3rd try

2nd try

Pin
NOT Ok

Pin
NOT Ok

Card inserted

Pin Ok

Pin Ok

Pin
NOT Ok


Слайд 15Use Case Testing
Use Case testing - is a technique that helps

us identify test cases that exercise the whole system on a transaction by transaction basis from start to finish.
Use cases describe the process flows through a system based on its most likely use
This makes the test cases derived from use cases particularly good for finding defects in the real-world use of the system
Each use case usually has a mainstream (or most likely) scenario and sometimes additional alternative branches (covering, for example, special cases or exceptional conditions).
Each use case must specify any preconditions that need to be met for the use case to work.
Use cases must also specify post conditions that are observable results and a description of the final state of the system after the use case has been executed successfully.

Слайд 16Choosing A Test Design Technique
Which technique is best? This is the

wrong question!
Each technique is good for certain things, and not as good for other things. Some techniques are more applicable to certain situations and test levels, others are applicable to all test levels.

The internal factors that influence the decision about which technique to use are:
Tester knowledge and experience
Expected defects
Test objectives
Documentation
Life cycle model

The external factors that influence the decision about which technique to use are:
Risks
Customer and contractual requirements
System type
Regulatory requirements
Time and budget

Слайд 17Homework
1. Practice in using Dynamic Test Design Techniques.


Слайд 18Example


Слайд 19Requirements: User Registration Page
Business Value: I, as an Administrator user, should

be able to create a simple user account to log in application.
Functional Requirements: ‘User Registration’ page should contain three fields ‘User Name’, ‘Password’, ‘Confirm Password’ and two buttons – ‘Save’ and ‘Cancel’.

Mock up:

‘User Name’ field is limited by 10 symbols and should contain letters of Latin alphabet only. ‘User Name’ field is empty by default. User Name should be unique in the system.
‘Password’ field should be no less than 4 symbols long and should include only numbers and letters of Latin alphabet only. ‘Password’ field is empty by default.
‘Confirm Password’ field should be equal to ‘Password’. ‘Confirm Password’ field is empty by default.
‘Cancel’ button cancels account creation and closes ‘User Registration’ page.
‘Save’ button validates data entered into fields on ‘User Registration’ page and creates user account if entered data are correct; or shows error dialogs if validation fails. Validation should be provided in following order: User Name, Password, and Confirm Password.


Слайд 20Requirements: Error Messages


Слайд 21State on Cancel action
State on Save action
Default state
Click ‘Save’ button
Click

‘Cancel’ button

‘User Name’ field is empty by default. ‘Password’ field is empty by default. ‘Confirm Password’ field is empty by default.
‘Cancel’ button cancels account creation and closes ‘User Registration’ page.
‘Save’ button creates user account if entered data are correct.

Applying State Transition Technique


Слайд 22Applying State Transition Technique


Слайд 23Applying State Transition Technique
State on Save action
Default state
Click ‘Save’
button
Validate Password
Click ‘Save’
button
Validate

User Name

User name
is OK

Validate Confirm Password

Password
is OK

Confirm Password is OK

‘Save’ button validates data entered into fields on ‘User Registration’ page and creates user account if entered data are correct; or shows error dialogs if validation fails. Validation should be provided in following order: User Name, Password, and Confirm Password.

User name is not OK

Password is not OK

Confirm Password is not OK


Слайд 24Applying BVA and EP Techniques
‘User Name’ field is limited by 10

symbols.

‘User Name’ field should contain letters of Latin alphabet only.

User Name should be unique in the system.


Слайд 25Test Item “User Registration”


Слайд 26Test Item “User Registration”


Слайд 27Homework
Create Test-items for presented requirements.
Use Test-design techniques.


Слайд 28Thank you
USA TELEPHONE
Toll-Free: 866.687.3588
Office: 239.690.3111

UK TELEPHONE
Tel: 0207.544.8414

GERMAN TELEPHONE
Tel: 0692.602.5857


EMAIL
info@softserveinc.com
 
WEBSITE:
www.softserveinc.com

EUROPE

OFFICES
United Kingdom
Germany
The Netherlands
Ukraine
Bulgaria

US OFFICES
Austin, TX
Fort Myers, FL
Boston, MA
Newport Beach, CA
Salt Lake City, UT


Обратная связь

Если не удалось найти и скачать презентацию, Вы можете заказать его на нашем сайте. Мы постараемся найти нужный Вам материал и отправим по электронной почте. Не стесняйтесь обращаться к нам, если у вас возникли вопросы или пожелания:

Email: Нажмите что бы посмотреть 

Что такое ThePresentation.ru?

Это сайт презентаций, докладов, проектов, шаблонов в формате PowerPoint. Мы помогаем школьникам, студентам, учителям, преподавателям хранить и обмениваться учебными материалами с другими пользователями.


Для правообладателей

Яндекс.Метрика