SlideShare una empresa de Scribd logo
1 de 79
Descargar para leer sin conexión
DYNAMIC TESTING
       Hoang V. Nguyen
       startnewday85@gmail.com
       startnewday85.blogspot.com
       Dept. of Computer Science – FIT - HUA




Tester Training Course
User                                                            Acceptance
requirements                                                          Testing

        System
                                                           System Testing
     requirements

                                                      Integration
          Global Design
                                                        Testing


               Detailed Design                    Unit Testing



                                 implementation

Tester Training Course                                                       2011
Tester Training Course   2011
 Systematic approach

        Non systematic approach




Tester Training Course             2011
 Identify Test conditions
    Specify Test cases
    Specify Test Procedures
       • is also referred as test script




Tester Training Course                     2011
 Testing may be performed with varying
    degrees of formality
        • Test Design Specification(IEEE 829)/ Test Condition
        Specification

        • Test Case Specification

        • Test Procedure Specification/ Test Script
                 • Manual
                 • Automatic




Tester Training Course                                          2011
Tester Training Course   2011
 Provides a quantitative measure of the
   quality of the testing that has been done
    By measuring what has been achieved
    Provides a way of estimating how much
   more testing needs to be done.
    Can be applied to any systematic approach



Tester Training Course                           2011
Tester Training Course   2011
 Test requirements/ test inventory/ test
   objectives
    Designed based on test basis
    Traceability
    Must be prioritized


Tester Training Course                         2011
 Test Data
              • inputs,
              • pre-conditions,
              • expected results,
              • post-conditions

      Exhaustive Testing is impractical
              • must select a subset of all possible test cases



Tester Training Course                                            2011
Tester Training Course   2011
Tester Training Course   2011
 a procedure for selecting test cases
     a way deriving good test cases
     a way objectively measuring a test effort
     maximize possibility faults found, minimize
    time and resources




Tester Training Course                              2011
 Different people: similar probability find faults
     • gain some independence of thought

  Effective testing: find more faults
     • focus attention on specific types of fault
     • know you're testing the right thing

  Efficient testing: find faults with less effort
     • avoid duplication
     • systematic techniques are measurable

Tester Training Course                               2011
 Systematic approach
            • Specification-based or black-box
            • Structure-based or white-box

        Experience based approach
            • Error Guessing
            • Exploratory testing




Tester Training Course                           2011
 Specification-based approach
        • based on specifications and models of what the
        system should do
        • do not care how do

     Some techniques
        •   Equivalence partitioning
        •   Boundary value analysis
        •   Decision table testing
        •   State transition testing
        •   Use case testing

Tester Training Course                                     2011
Tester Training Course   2011
 divide the test case space into
    areas(partitions)
         • inputs
         • outputs
         • conditions

     In an area, if one element works
    correctly, all will work correctly
     One from each partition better than
    all from one

Tester Training Course                      2011
Name                                            From 18
 Age                                               to 50



         Invalid          valid        Invalid
                     18           50


        ==> Test cases: 10, 20, 60, abc
Tester Training Course                                     2011
Invalid           valid        Invalid
                     18           50


     Faults tend to lurk near boundaries
     Good place to look for faults
     Test values on both sides of boundaries



Tester Training Course                           2011
From 3 to 50
                          characters


 Name                           From 18 to
                                    50
 Age




Tester Training Course                   2011
 Number of characters
         Invalid       valid                                    Invalid
                 3                                       50


     Valid characters                              A-Z, a-z,
                                                                        Invalid
                                                     space

 Test Condition   Valid Partition       Invalid      Valid Boundary       Invalid
                                       Partition                         Boundary
 Name Field       3-50 chars        <3 chars         3 chars          2 chars
                                    >50 chars        50 chars         51 chars
                  valid chars       invalid chars


Tester Training Course                                                           2011
Invalid                   valid                   Invalid
                         18                            50


Test Condition   Valid Partition   Invalid Partition   Valid Boundary         Invalid
                                                                             Boundary
Age Field        18-50             <18                 18               17
                                   >50                 50               51
                                   Non numeric



Tester Training Course                                                                  2011
Tester Training Course   2011
Question
    In a Examination a candidate has to score minimum 24
    marks in order to clear the exam. The maximum that
    he can score is 40 marks. Identify the Valid
    Equivalance values if the student clears exam.



22, 23, 26


21, 39, 40


29, 30, 31


0, 15, 22




 Tester Training Course                                    2011
Question
                                    Boundary value testing


                         Is the same as equivalence partitioning tests

                         Test boundary conditions on, below and above the
                         edges of input and output equivalence classes

                         Tests combinations of input circumstances


                         Is used in white box testing strategy




Tester Training Course                                                      2011
Question
Equivalence testing divides the input
domain into classes of data from which test
cases can be derived to reduce the total
number of test cases that must be
developed.

True


False




Tester Training Course                        2011
Question
                            An input field takes the year of birth
                            between 1900 and 2004. The boundary
                            values for testing this field are


                         0, 1900, 2004, 2005


                         1900, 2004


                         1989, 1900, 2004, 2005


                         1989, 1900, 1901, 2003, 2004, 2005




Tester Training Course                                               2011
 Some software app, business rules can
    be very complex
     Decision table a good method to
    describe complex business rules
                 Business Rule   Business Rule   Business Rule   Business Rule
                       1               2               3               4
  Condition 1            T            T               T               F
  Condition 2            T            F               F               T
  Condition 3            T            _               T               T
  Action 1               Y            N               N               N
  Action 2               N            N               Y               N


Tester Training Course                                                           2011
Given the following decision table: Which of the
                 following test cases and expected results is VALID?
                                    Rule 1       Rule 2         Rule 3         Rule 4
              Age             <21 yrs 21-29 yrs 30-50 yrs >50 yrs
              Insurance class A       A or B    B, C or D C or D
              Premium               100          90             70             70
              Excess                2,500        2,500          500            1000

           23 year old in insurance class A Premium is 0 and excess is,500.

           51 year old in insurance class C Premium is 0 and excess is 00.

           31 year old in insurance class B Premium is 0 and excess is ,500.

           43 year old in insurance class C Premium is 0 and excess is ,000.


Tester Training Course                                                                  2011
A supermarket has a loyalty scheme that is offered to all
    customers. Loyalty cardholders enjoy the benefits of either
    additional discounts on all purchases (rule 3) or the
    acquisition of loyalty points (rule 4), which can be converted
    into vouchers for the supermarket or to equivalent points in
    schemes run by partners. Customers without a loyalty card
    receive an additional discount only if they spend more than
    £100 on any one visit to the store (rule 2), otherwise only
    the special offers offered to all customers apply (rule 1).




Tester Training Course                                               2011
Rule 1   Rule 2   Rule 3   Rule 4
  Customer without loyalty card         T        T        F        F
  Customer with loyalty card            F        F        T        T
  Extra discount selected               _        _        T        F
  Spend > £100                          F        T        _        _
  No discount                           T        F        F        F
  Extra discount                        F        T        T        F
  Loyalty points                        F        F        F        T
       Create at least one test case for each rule
          • Conditions specify inputs
          • Actions specify outputs

Tester Training Course                                                      2011
 based on state transition diagram
     Example: ATM State Transition
                                             NOT OK

         Start                     2nd try

                                                      3rd try
                         1st try

                                                             NOT OK

                                    Access
             wait                                      Eat
                                      to
            for PIN                                   card
                                   Account


Tester Training Course                                                2011
 Four different levels of coverage
         • State Coverage
         • Event Coverage
         • Path coverage
         • Transition coverage




Tester Training Course                    2011
 State Coverage
          Generally this is a weak level of test coverage

     2                                           NOT OK
 1
         Start                        2nd try

                                                          3rd try
                         1st try

                                                                 NOT OK

                                        Access
             wait                                          Eat
                                          to
            for PIN                                       card
                                       Account



Tester Training Course                                                    2011
 Event Coverage
          also is a weak level of coverage


     2                                          NOT OK
 1
         Start                        2nd try

                                                         3rd try
                         1st try

                                                                NOT OK

                                       Access
             wait                                         Eat
                                         to
            for PIN                                      card
                                      Account

Tester Training Course                                                   2011
 Path Coverage
         • is the strongest level of coverage
         • but may not be feasible
         • if the state transition diagram has loops, then the
         number of possible paths may be infinite




Tester Training Course                                           2011
 Transition Coverage
         • good level of coverage with out generating large
         numbers of tests
         • this level is generally the one recommended
                                             NOT OK

         Start                     2nd try

                                                      3rd try
                         1st try

                                                             NOT OK

                                    Access
             wait                                      Eat
                                      to
            for PIN                                   card
                                   Account
Tester Training Course                                                2011
Tester Training Course   2011
 To exercise a complete process flow
     At least one test case for the main
    success scenario
     At least one test case for each extension




Tester Training Course                            2011
 Test oracle


                          Partial oracle




Tester Training Course                      2011
 Based on “What”, with out “How”
     Test cases can be designed:
         • Input/output variables with their ranges and
         boundaries
         • Business rules
         • System behaviors
         • System’s functionalities from start to finish




Tester Training Course                                     2011
Question
                             Purpose of test design technique is


                         Identifying test conditions only, not Identifying test
                         cases

                         Identifying test conditions and Identifying test cases

                         Not Identifying test conditions, Identifying test
                         cases only

                         Identifying test conditions or Identifying test cases




Tester Training Course                                                            2011
Question
     ’X’ has given a data on a person age, which
     should be between 1 to 99. Using BVA which is
     the appropriate one


0, 1, 2, 99


1, 99, 100, 98


0, 1, 99, 100


-1, 0, 1, 99




 Tester Training Course                              2011
Given the following state diagram: Which of the
                 following series of state transitions? S1 S0 S1 S2 S0




           D, A, B

           A, B, C, D

           D, A, B, C

           A, B, C


Tester Training Course                                               2011
Question
  Which type of test design techniques does the
  following statement best describe a procedure to
  derive test cases based on the specification of a
  component?


White Box Techniques


Black Box Techniques


Glass Box Techniques


Experience Based Techniques




 Tester Training Course                               2011
Given the following state diagram: Which of the following
            series of state transitions contains an invalid transition
              which may be indicate a fault in the system design?




           Login Browse Basket Checkout Basket Checkout Pay Logout.

           Login Browse Basket Checkout Pay Logout.

           Login Browse Basket Checkout Basket Logout.

           Login Browse Basket Browse Basket Checkout Pay Logout.


Tester Training Course                                                2011
Question
   Which of the following is MOST characteristic of
           specification based(black-box)



Test cases can be easily automated


Test cases are independent of each other

Test cases are derived systematically from models of
the system

Test cases are derived systematically from the
delivered code




 Tester Training Course                                2011
Question
                                 Use cases can be performed to test



                         Performance testing


                         Business scenarios


                         Static testing


                         Unit testing




Tester Training Course                                                2011
Question
           Which is NOT a test oracle


The existing system(For a benchmark)


Indinidual’s knowlege


The code


User manual




 Tester Training Course                 2011
Question
                         The Test Cases Derived from use cases


                         Are most useful in uncovering defects in the process
                         flows during real world use of the system

                         Are most useful in uncovering defects in the process
                         flows during the testing use of the system

                         Are most useful in covering the defects in the
                         process flows during real world use of the system

                         Are most useful in covering the defects at the
                         Integration Level




Tester Training Course                                                          2011
 Structure-based approach
         • based on structures of system or component
         • also called glass-box techniques

     What we may be interested in structures
         • Component level: program structures
         • Integration level: the way components interact with
         others
         • System level: how user will interact with the system



Tester Training Course                                            2011
Tester Training Course   2011
 Statement Testing
        Decision Testing
        Path Testing




Tester Training Course       2011
 Design test cases based on what
    statements which should be exercised
     Statement coverage
         • percentage of executable statements exercised

                number of statements exercise
         • =
                 total number of statements

         • is normally measured by a software tool
         • typical ad hoc testing achieves 60 – 75%


Tester Training Course                                     2011
1 Program Coverage Example
 2     A, X: Integer
 3     Begin
 4           Read A
 5           Read X
 6           If A > 1 AND X = 2 Then
 7                  X = X/A
 8           Endif
 9           If A = 2 OR X = 2 Then
 10                 X = X + 1
 11          Endif
 12    End
The number of executable statements: 6
      Test case 1: A=1, X=2; 4/6 or 67%

      Test case 1: A=4, X=2; 6/6 or 100%
Tester Training Course                     2011
1 Program BestInterest
2 Interest, Base Rate, Balance: Real
3 Begin
4      Base Rate = 0.035
5      Interest = Base Rate
6      Read (Balance)
7      If Balance > 1000 Then
8         Interest = Interest + 0.005
9         If Balance < 10000 Then
10           Interest = Interest + 0.005
11        Else
12           Interest = Interest + 0.010
13        Endif
14     Endif
15     Balance = Balance × (1 + Interest)
16 End

        What test cases to achieve 100 percent
                 statement coverage
Tester Training Course                           2011
 Design test cases based on what decision
    outcomes which should be exercised
     same as Branch Testing
     Decision coverage
         • percentage of decision outcomes exercised

             number of decision outcome exercised
         • =
              total number of decision outcomes

         • is normally measured by a software tool
         • typical ad hoc testing achieves 40 – 60%
Tester Training Course                                 2011
1 Program BestInterest
2 Interest, Base Rate, Balance: Real
3 Begin
4      Base Rate = 0.035
5      Interest = Base Rate
6      Read (Balance)
7      If Balance > 1000 Then
8         Interest = Interest + 0.005
9         If Balance < 10000 Then
10           Interest = Interest + 0.005
11        Else
12           Interest = Interest + 0.010
13        Endif
14     Endif
15     Balance = Balance × (1 + Interest)
16 End

 What test cases to achieve 100 percent decision
                    coverage
Tester Training Course                         2011
1 float dc(int a,b,c,d,h)
2 Begin
3      float r
4      If a=0 Then return 0
5      Endif
6      int f=0;
7      If (a=b) or ((c=d) and check(h))
       Then
8             f=f+1;
9      Endif
10     f=f+1;
11     return 1/f
12 End


 What test cases to achieve 100 percent decision
                    coverage
Tester Training Course                         2011
 Design test cases based on Boolean sub-
    expression (BsE)
     Condition coverage
         • percentage of Boolean sub-expression outcomes
         exercised

                  number of BsE outcome exercised
         • =
                   total number of BsE outcomes

         • There are no industry standard objectives for
         condition coverage


Tester Training Course                                     2011
 Example
            7         If (a=b) or ((c=d) and check(h)) Then


                Predicate      True             False
                a=b            Test case 1      Test case 2
                               dc(1,1,x,y,z)    dc(1,2,x,y,z)
                c=d            Test case 3      Test case 2
                               dc(1,2,2,2,z)    dc(1,2,1,2,z)
                check(h)       Test case 3      Test case 4
                               dc(1,2, 2,2,z)   dc(1,2, 2,2, z’)



Tester Training Course                                             2011
 Design test cases based on what paths
    which should be exercised
     Path coverage
         • percentage of paths exercised

                  number of paths exercised
         • =
                    total number of paths




Tester Training Course                        2011
1 2 3 4



1 2             1 2      1 2 3
                                        ?



 ?               ?         ?     ?


                                        ?




Tester Training Course                         2011
1 2 3    4    5   6   7   8 ….




                                        for as many times as it
                                        is possible to go round
               ?
                                        the loop (this can be
                                        unlimited, i.e. infinite)




Tester Training Course                                              2011
Question
   If the pseudo code below were a programming language,
   how many tests are required to achieve 100% statement
   coverage?

1 If x=3 then
                                     1
2    Display_messageX;
3    If y=2 then
                                     2
4         Display_messageY;
5    Else
                                     3
6         Display_messageZ;
7    EndIf
                                     4
8 Else
9    Display_messageZ;
10 EndIf


Tester Training Course                                     2011
Question
   If the pseudo code below were a programming language,
   how many tests are required to achieve 100% decision
   coverage?
               1    Program AgeCheck
               2    CandidateAge: Integer;
               3    Begin
               4    Read(CandidateAge)                       1
               5    If CandidateAge < 18 Then
               6    Print (“Candidate is too young”)         2
               7    Else
               8        If CandidateAge > 30 Then
               9        Print (“Candidate is too old”)       3
               10       Else
               11   Print(“Candidate may join Club 18–30”)
               12       Endif                                4
               13   Endif
               14   End


Tester Training Course                                           2011
 is an important measure in systematic
   approach
    But
       • Coverage techniques measure only one dimension
       • measures only what has written

       In practice, are always multi-dimension and
       have something which have not been written


Tester Training Course                                    2011
Question
 Which of the following is NOT true
      of test coverage criteria?

Test coverage criteria can be measured in terms of
items exercised by a test suite

A measure of test coverage criteria is the percentage
of faults found

A measure of test coverage criteria is the percentage
of user requirements covered

Test coverage criteria are often used when
specifying test completion criteria




 Tester Training Course                                 2011
 Unscripted testing
    Experience based approach
    Some techniques
       • Error guessing
       • Exploratory testing

      A testing approach that is only rigorous,
      thorough and systematic is in complete

Tester Training Course                            2011
 no rules, no script
     situations in which the software may
    not be able to cope are identified based
    on experience(feel)
     Consider:
        • past failures
        • brain storming
        • intuition
        • “what is the craziest thing we can do”


Tester Training Course                             2011
 always worth including
   after systematic techniques have been
    used
   can find some faults that systematic
    techniques can miss
   a ‘mopping up’ approach
   supplements systematic techniques



Tester Training Course                      2011
Details will be focused in Agile testing lectures




Tester Training Course                                     2011
Question
      A test design technique is



A process for determining expected outputs


A process for selecting test cases


A way to measure the quality of software


A way to measure in a test plan what has to be done




 Tester Training Course                               2011
Tester Training Course   2011
Question
                                           Error guessing


                         A supplements formal test design techniques

                         Can only be used in component, integration and
                         system testing

                         Is only performed in user acceptance testing


                         Is not repeatable and should not be used




Tester Training Course                                                    2011
Question
                 Error guessing is



An appropriate way of deriving system tests


Only used if good requirements are not available


Only used when good requirements are available


The most appropriate way of deriving system tests




 Tester Training Course                             2011
Question
                                          Random testing


                         A black-box testing technique


                         Program is tested randomly sampling the input


                         Both A and B


                         None of the above




Tester Training Course                                                   2011

Más contenido relacionado

La actualidad más candente

Risk-based Testing
Risk-based TestingRisk-based Testing
Risk-based TestingJohan Hoberg
 
Selenium Maven With Eclipse | Edureka
Selenium Maven With Eclipse | EdurekaSelenium Maven With Eclipse | Edureka
Selenium Maven With Eclipse | EdurekaEdureka!
 
ISTQB Projelerde Spesifikasyona Dayalı Test Teknikleri
ISTQB Projelerde Spesifikasyona Dayalı Test TeknikleriISTQB Projelerde Spesifikasyona Dayalı Test Teknikleri
ISTQB Projelerde Spesifikasyona Dayalı Test TeknikleriPEM Proje Eğitim Merkezi
 
Automation Testing using Selenium
Automation Testing using SeleniumAutomation Testing using Selenium
Automation Testing using SeleniumNaresh Chintalcheru
 
Automated Web Testing Using Selenium
Automated Web Testing Using SeleniumAutomated Web Testing Using Selenium
Automated Web Testing Using SeleniumWeifeng Zhang
 
Software Testing - A sneak preview By Srikanth
Software Testing - A sneak preview By SrikanthSoftware Testing - A sneak preview By Srikanth
Software Testing - A sneak preview By SrikanthSrikanth Krishnamoorthy
 
Automation - web testing with selenium
Automation - web testing with seleniumAutomation - web testing with selenium
Automation - web testing with seleniumTzirla Rozental
 
What is Integration Testing? | Edureka
What is Integration Testing? | EdurekaWhat is Integration Testing? | Edureka
What is Integration Testing? | EdurekaEdureka!
 
Selenium Tutorial For Beginners | What Is Selenium? | Selenium Automation Tes...
Selenium Tutorial For Beginners | What Is Selenium? | Selenium Automation Tes...Selenium Tutorial For Beginners | What Is Selenium? | Selenium Automation Tes...
Selenium Tutorial For Beginners | What Is Selenium? | Selenium Automation Tes...Edureka!
 
Selenium WebDriver with C#
Selenium WebDriver with C#Selenium WebDriver with C#
Selenium WebDriver with C#srivinayak
 
Selenium Architecture
Selenium ArchitectureSelenium Architecture
Selenium Architecturerohitnayak
 
Técnicas de modelagem de teste (parte 1)
Técnicas de modelagem de teste (parte 1)Técnicas de modelagem de teste (parte 1)
Técnicas de modelagem de teste (parte 1)Fabrício Campos
 

La actualidad más candente (20)

Risk-based Testing
Risk-based TestingRisk-based Testing
Risk-based Testing
 
Selenium Maven With Eclipse | Edureka
Selenium Maven With Eclipse | EdurekaSelenium Maven With Eclipse | Edureka
Selenium Maven With Eclipse | Edureka
 
ISTQB Projelerde Spesifikasyona Dayalı Test Teknikleri
ISTQB Projelerde Spesifikasyona Dayalı Test TeknikleriISTQB Projelerde Spesifikasyona Dayalı Test Teknikleri
ISTQB Projelerde Spesifikasyona Dayalı Test Teknikleri
 
Selenium with java
Selenium with javaSelenium with java
Selenium with java
 
Introduction to selenium
Introduction to seleniumIntroduction to selenium
Introduction to selenium
 
Software Testing
Software TestingSoftware Testing
Software Testing
 
Unit Testing
Unit TestingUnit Testing
Unit Testing
 
Automation Testing using Selenium
Automation Testing using SeleniumAutomation Testing using Selenium
Automation Testing using Selenium
 
Automated Web Testing Using Selenium
Automated Web Testing Using SeleniumAutomated Web Testing Using Selenium
Automated Web Testing Using Selenium
 
Introduction to Selenium Web Driver
Introduction to Selenium Web DriverIntroduction to Selenium Web Driver
Introduction to Selenium Web Driver
 
Chapter 1 - Testing Process
Chapter 1 - Testing ProcessChapter 1 - Testing Process
Chapter 1 - Testing Process
 
Software Testing - A sneak preview By Srikanth
Software Testing - A sneak preview By SrikanthSoftware Testing - A sneak preview By Srikanth
Software Testing - A sneak preview By Srikanth
 
Automation - web testing with selenium
Automation - web testing with seleniumAutomation - web testing with selenium
Automation - web testing with selenium
 
What is Integration Testing? | Edureka
What is Integration Testing? | EdurekaWhat is Integration Testing? | Edureka
What is Integration Testing? | Edureka
 
Selenium Tutorial For Beginners | What Is Selenium? | Selenium Automation Tes...
Selenium Tutorial For Beginners | What Is Selenium? | Selenium Automation Tes...Selenium Tutorial For Beginners | What Is Selenium? | Selenium Automation Tes...
Selenium Tutorial For Beginners | What Is Selenium? | Selenium Automation Tes...
 
Selenium WebDriver with C#
Selenium WebDriver with C#Selenium WebDriver with C#
Selenium WebDriver with C#
 
Selenium Architecture
Selenium ArchitectureSelenium Architecture
Selenium Architecture
 
Técnicas de modelagem de teste (parte 1)
Técnicas de modelagem de teste (parte 1)Técnicas de modelagem de teste (parte 1)
Técnicas de modelagem de teste (parte 1)
 
Selenium
SeleniumSelenium
Selenium
 
TestNG with selenium
TestNG with seleniumTestNG with selenium
TestNG with selenium
 

Destacado

Destacado (11)

Static testing vs dynamic testing
Static testing vs dynamic testingStatic testing vs dynamic testing
Static testing vs dynamic testing
 
Cause effect graphing technique
Cause effect graphing techniqueCause effect graphing technique
Cause effect graphing technique
 
Black box testing lecture 11
Black box testing lecture 11Black box testing lecture 11
Black box testing lecture 11
 
Black box
Black boxBlack box
Black box
 
Techniques in black box testing
Techniques in black box testingTechniques in black box testing
Techniques in black box testing
 
White box ppt
White box pptWhite box ppt
White box ppt
 
Software Testing Techniques
Software Testing TechniquesSoftware Testing Techniques
Software Testing Techniques
 
Black box & white-box testing technique
Black box & white-box testing techniqueBlack box & white-box testing technique
Black box & white-box testing technique
 
Testing techniques
Testing techniquesTesting techniques
Testing techniques
 
Black & White Box testing
Black & White Box testingBlack & White Box testing
Black & White Box testing
 
Whitebox testing
Whitebox testingWhitebox testing
Whitebox testing
 

Similar a Dynamic Testing

Fundamentals of Testing 2
Fundamentals of Testing 2Fundamentals of Testing 2
Fundamentals of Testing 2Hoang Nguyen
 
Key Test Design Techniques
Key Test Design TechniquesKey Test Design Techniques
Key Test Design TechniquesTechWell
 
ISTQB, ISEB Lecture Notes- 4
ISTQB, ISEB Lecture Notes- 4ISTQB, ISEB Lecture Notes- 4
ISTQB, ISEB Lecture Notes- 4onsoftwaretest
 
Key Test Design Techniques
Key Test Design TechniquesKey Test Design Techniques
Key Test Design TechniquesTechWell
 
Key Test Design Techniques
Key Test Design TechniquesKey Test Design Techniques
Key Test Design TechniquesTechWell
 
Fundamentals of testing 1
Fundamentals of testing 1Fundamentals of testing 1
Fundamentals of testing 1Hoang Nguyen
 
ISTQB / ISEB Foundation Exam Practice - 4
ISTQB / ISEB Foundation Exam Practice - 4ISTQB / ISEB Foundation Exam Practice - 4
ISTQB / ISEB Foundation Exam Practice - 4Yogindernath Gupta
 
Database Unit Testing Made Easy with VSTS
Database Unit Testing Made Easy with VSTSDatabase Unit Testing Made Easy with VSTS
Database Unit Testing Made Easy with VSTSSanil Mhatre
 
A Test Analysis Method for Black Box Testing Using AUT and Fault Knowledge.
A Test Analysis Method for Black Box Testing Using AUT and Fault Knowledge.A Test Analysis Method for Black Box Testing Using AUT and Fault Knowledge.
A Test Analysis Method for Black Box Testing Using AUT and Fault Knowledge.Tsuyoshi Yumoto
 
&lt;p>Software Testing&lt;/p>
&lt;p>Software Testing&lt;/p>&lt;p>Software Testing&lt;/p>
&lt;p>Software Testing&lt;/p>Atul Mishra
 
An overview to Software Testing
An overview to Software TestingAn overview to Software Testing
An overview to Software TestingAtul Mishra
 
Equivalence class testing
Equivalence  class testingEquivalence  class testing
Equivalence class testingMani Kanth
 
Design Test Case Technique (Equivalence partitioning And Boundary value analy...
Design Test Case Technique (Equivalence partitioning And Boundary value analy...Design Test Case Technique (Equivalence partitioning And Boundary value analy...
Design Test Case Technique (Equivalence partitioning And Boundary value analy...Ryan Tran
 
Equivalence partitions analysis
Equivalence partitions analysisEquivalence partitions analysis
Equivalence partitions analysisVadym Muliavka
 
Lecture 3. Computer-based assessment
Lecture 3. Computer-based assessmentLecture 3. Computer-based assessment
Lecture 3. Computer-based assessmentGeorgiy Gerkushenko
 
Boundary Value Analysis and Equivalence class Partitioning Testing.pptx
Boundary Value Analysis and Equivalence class Partitioning Testing.pptxBoundary Value Analysis and Equivalence class Partitioning Testing.pptx
Boundary Value Analysis and Equivalence class Partitioning Testing.pptxlandesc
 
A survey of software testing
A survey of software testingA survey of software testing
A survey of software testingTao He
 
Tester contribution to Testing Effectiveness. An Empirical Research
Tester contribution to Testing Effectiveness. An Empirical ResearchTester contribution to Testing Effectiveness. An Empirical Research
Tester contribution to Testing Effectiveness. An Empirical ResearchNatalia Juristo
 

Similar a Dynamic Testing (20)

Fundamentals of Testing 2
Fundamentals of Testing 2Fundamentals of Testing 2
Fundamentals of Testing 2
 
Key Test Design Techniques
Key Test Design TechniquesKey Test Design Techniques
Key Test Design Techniques
 
ISTQB, ISEB Lecture Notes- 4
ISTQB, ISEB Lecture Notes- 4ISTQB, ISEB Lecture Notes- 4
ISTQB, ISEB Lecture Notes- 4
 
Key Test Design Techniques
Key Test Design TechniquesKey Test Design Techniques
Key Test Design Techniques
 
Key Test Design Techniques
Key Test Design TechniquesKey Test Design Techniques
Key Test Design Techniques
 
Fundamentals of testing 1
Fundamentals of testing 1Fundamentals of testing 1
Fundamentals of testing 1
 
ISTQB / ISEB Foundation Exam Practice - 4
ISTQB / ISEB Foundation Exam Practice - 4ISTQB / ISEB Foundation Exam Practice - 4
ISTQB / ISEB Foundation Exam Practice - 4
 
Database Unit Testing Made Easy with VSTS
Database Unit Testing Made Easy with VSTSDatabase Unit Testing Made Easy with VSTS
Database Unit Testing Made Easy with VSTS
 
A Test Analysis Method for Black Box Testing Using AUT and Fault Knowledge.
A Test Analysis Method for Black Box Testing Using AUT and Fault Knowledge.A Test Analysis Method for Black Box Testing Using AUT and Fault Knowledge.
A Test Analysis Method for Black Box Testing Using AUT and Fault Knowledge.
 
&lt;p>Software Testing&lt;/p>
&lt;p>Software Testing&lt;/p>&lt;p>Software Testing&lt;/p>
&lt;p>Software Testing&lt;/p>
 
An overview to Software Testing
An overview to Software TestingAn overview to Software Testing
An overview to Software Testing
 
Equivalence class testing
Equivalence  class testingEquivalence  class testing
Equivalence class testing
 
Design Test Case Technique (Equivalence partitioning And Boundary value analy...
Design Test Case Technique (Equivalence partitioning And Boundary value analy...Design Test Case Technique (Equivalence partitioning And Boundary value analy...
Design Test Case Technique (Equivalence partitioning And Boundary value analy...
 
Unit testing
Unit testingUnit testing
Unit testing
 
Equivalence partitions analysis
Equivalence partitions analysisEquivalence partitions analysis
Equivalence partitions analysis
 
Lecture 3. Computer-based assessment
Lecture 3. Computer-based assessmentLecture 3. Computer-based assessment
Lecture 3. Computer-based assessment
 
Testing
TestingTesting
Testing
 
Boundary Value Analysis and Equivalence class Partitioning Testing.pptx
Boundary Value Analysis and Equivalence class Partitioning Testing.pptxBoundary Value Analysis and Equivalence class Partitioning Testing.pptx
Boundary Value Analysis and Equivalence class Partitioning Testing.pptx
 
A survey of software testing
A survey of software testingA survey of software testing
A survey of software testing
 
Tester contribution to Testing Effectiveness. An Empirical Research
Tester contribution to Testing Effectiveness. An Empirical ResearchTester contribution to Testing Effectiveness. An Empirical Research
Tester contribution to Testing Effectiveness. An Empirical Research
 

Más de Hoang Nguyen

GANs and Applications
GANs and ApplicationsGANs and Applications
GANs and ApplicationsHoang Nguyen
 
Scrum - An introduction
Scrum - An introductionScrum - An introduction
Scrum - An introductionHoang Nguyen
 
Introduction to Cross-platform App Development
Introduction to Cross-platform App DevelopmentIntroduction to Cross-platform App Development
Introduction to Cross-platform App DevelopmentHoang Nguyen
 
Conistency of random forests
Conistency of random forestsConistency of random forests
Conistency of random forestsHoang Nguyen
 
Trust - Digital Signature
Trust - Digital SignatureTrust - Digital Signature
Trust - Digital SignatureHoang Nguyen
 
SOME SECURITY CHALLENGES IN CLOUD COMPUTING
SOME SECURITY CHALLENGES  IN CLOUD COMPUTINGSOME SECURITY CHALLENGES  IN CLOUD COMPUTING
SOME SECURITY CHALLENGES IN CLOUD COMPUTINGHoang Nguyen
 
Information, Data and Decision Making
Information, Data and Decision MakingInformation, Data and Decision Making
Information, Data and Decision MakingHoang Nguyen
 
Multiple processor systems
Multiple processor systemsMultiple processor systems
Multiple processor systemsHoang Nguyen
 
Multiprocessor Systems
Multiprocessor SystemsMultiprocessor Systems
Multiprocessor SystemsHoang Nguyen
 
Introduction to AOS course
Introduction to AOS courseIntroduction to AOS course
Introduction to AOS courseHoang Nguyen
 
Background Knowledge
Background KnowledgeBackground Knowledge
Background KnowledgeHoang Nguyen
 
Introduction to Information Security Course
Introduction to Information Security CourseIntroduction to Information Security Course
Introduction to Information Security CourseHoang Nguyen
 
Introduction to CNS Course
Introduction to CNS CourseIntroduction to CNS Course
Introduction to CNS CourseHoang Nguyen
 

Más de Hoang Nguyen (20)

GANs and Applications
GANs and ApplicationsGANs and Applications
GANs and Applications
 
Scrum - An introduction
Scrum - An introductionScrum - An introduction
Scrum - An introduction
 
ORM in Django
ORM in DjangoORM in Django
ORM in Django
 
Introduction to Cross-platform App Development
Introduction to Cross-platform App DevelopmentIntroduction to Cross-platform App Development
Introduction to Cross-platform App Development
 
Conistency of random forests
Conistency of random forestsConistency of random forests
Conistency of random forests
 
Trust - Digital Signature
Trust - Digital SignatureTrust - Digital Signature
Trust - Digital Signature
 
Key Exchange
Key ExchangeKey Exchange
Key Exchange
 
SOME SECURITY CHALLENGES IN CLOUD COMPUTING
SOME SECURITY CHALLENGES  IN CLOUD COMPUTINGSOME SECURITY CHALLENGES  IN CLOUD COMPUTING
SOME SECURITY CHALLENGES IN CLOUD COMPUTING
 
Stream ciphers
Stream ciphersStream ciphers
Stream ciphers
 
Classical ciphers
Classical ciphersClassical ciphers
Classical ciphers
 
Confidentiality
ConfidentialityConfidentiality
Confidentiality
 
Information, Data and Decision Making
Information, Data and Decision MakingInformation, Data and Decision Making
Information, Data and Decision Making
 
Multiple processor systems
Multiple processor systemsMultiple processor systems
Multiple processor systems
 
Multiprocessor Systems
Multiprocessor SystemsMultiprocessor Systems
Multiprocessor Systems
 
Introduction to AOS course
Introduction to AOS courseIntroduction to AOS course
Introduction to AOS course
 
Background Knowledge
Background KnowledgeBackground Knowledge
Background Knowledge
 
Introduction to Information Security Course
Introduction to Information Security CourseIntroduction to Information Security Course
Introduction to Information Security Course
 
Introduction to CNS Course
Introduction to CNS CourseIntroduction to CNS Course
Introduction to CNS Course
 
Nosql intro
Nosql introNosql intro
Nosql intro
 
Static Testing
Static TestingStatic Testing
Static Testing
 

Último

Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesBoston Institute of Analytics
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfhans926745
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 

Último (20)

Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 

Dynamic Testing

  • 1. DYNAMIC TESTING Hoang V. Nguyen startnewday85@gmail.com startnewday85.blogspot.com Dept. of Computer Science – FIT - HUA Tester Training Course
  • 2. User Acceptance requirements Testing System System Testing requirements Integration Global Design Testing Detailed Design Unit Testing implementation Tester Training Course 2011
  • 4.  Systematic approach  Non systematic approach Tester Training Course 2011
  • 5.  Identify Test conditions  Specify Test cases  Specify Test Procedures • is also referred as test script Tester Training Course 2011
  • 6.  Testing may be performed with varying degrees of formality • Test Design Specification(IEEE 829)/ Test Condition Specification • Test Case Specification • Test Procedure Specification/ Test Script • Manual • Automatic Tester Training Course 2011
  • 8.  Provides a quantitative measure of the quality of the testing that has been done  By measuring what has been achieved  Provides a way of estimating how much more testing needs to be done.  Can be applied to any systematic approach Tester Training Course 2011
  • 10.  Test requirements/ test inventory/ test objectives  Designed based on test basis  Traceability  Must be prioritized Tester Training Course 2011
  • 11.  Test Data • inputs, • pre-conditions, • expected results, • post-conditions  Exhaustive Testing is impractical • must select a subset of all possible test cases Tester Training Course 2011
  • 14.  a procedure for selecting test cases  a way deriving good test cases  a way objectively measuring a test effort  maximize possibility faults found, minimize time and resources Tester Training Course 2011
  • 15.  Different people: similar probability find faults • gain some independence of thought  Effective testing: find more faults • focus attention on specific types of fault • know you're testing the right thing  Efficient testing: find faults with less effort • avoid duplication • systematic techniques are measurable Tester Training Course 2011
  • 16.  Systematic approach • Specification-based or black-box • Structure-based or white-box  Experience based approach • Error Guessing • Exploratory testing Tester Training Course 2011
  • 17.  Specification-based approach • based on specifications and models of what the system should do • do not care how do  Some techniques • Equivalence partitioning • Boundary value analysis • Decision table testing • State transition testing • Use case testing Tester Training Course 2011
  • 19.  divide the test case space into areas(partitions) • inputs • outputs • conditions  In an area, if one element works correctly, all will work correctly  One from each partition better than all from one Tester Training Course 2011
  • 20. Name From 18 Age to 50 Invalid valid Invalid 18 50 ==> Test cases: 10, 20, 60, abc Tester Training Course 2011
  • 21. Invalid valid Invalid 18 50  Faults tend to lurk near boundaries  Good place to look for faults  Test values on both sides of boundaries Tester Training Course 2011
  • 22. From 3 to 50 characters Name From 18 to 50 Age Tester Training Course 2011
  • 23.  Number of characters Invalid valid Invalid 3 50  Valid characters A-Z, a-z, Invalid space Test Condition Valid Partition Invalid Valid Boundary Invalid Partition Boundary Name Field 3-50 chars <3 chars 3 chars 2 chars >50 chars 50 chars 51 chars valid chars invalid chars Tester Training Course 2011
  • 24. Invalid valid Invalid 18 50 Test Condition Valid Partition Invalid Partition Valid Boundary Invalid Boundary Age Field 18-50 <18 18 17 >50 50 51 Non numeric Tester Training Course 2011
  • 26. Question In a Examination a candidate has to score minimum 24 marks in order to clear the exam. The maximum that he can score is 40 marks. Identify the Valid Equivalance values if the student clears exam. 22, 23, 26 21, 39, 40 29, 30, 31 0, 15, 22 Tester Training Course 2011
  • 27. Question Boundary value testing Is the same as equivalence partitioning tests Test boundary conditions on, below and above the edges of input and output equivalence classes Tests combinations of input circumstances Is used in white box testing strategy Tester Training Course 2011
  • 28. Question Equivalence testing divides the input domain into classes of data from which test cases can be derived to reduce the total number of test cases that must be developed. True False Tester Training Course 2011
  • 29. Question An input field takes the year of birth between 1900 and 2004. The boundary values for testing this field are 0, 1900, 2004, 2005 1900, 2004 1989, 1900, 2004, 2005 1989, 1900, 1901, 2003, 2004, 2005 Tester Training Course 2011
  • 30.  Some software app, business rules can be very complex  Decision table a good method to describe complex business rules Business Rule Business Rule Business Rule Business Rule 1 2 3 4 Condition 1 T T T F Condition 2 T F F T Condition 3 T _ T T Action 1 Y N N N Action 2 N N Y N Tester Training Course 2011
  • 31. Given the following decision table: Which of the following test cases and expected results is VALID? Rule 1 Rule 2 Rule 3 Rule 4 Age <21 yrs 21-29 yrs 30-50 yrs >50 yrs Insurance class A A or B B, C or D C or D Premium 100 90 70 70 Excess 2,500 2,500 500 1000 23 year old in insurance class A Premium is 0 and excess is,500. 51 year old in insurance class C Premium is 0 and excess is 00. 31 year old in insurance class B Premium is 0 and excess is ,500. 43 year old in insurance class C Premium is 0 and excess is ,000. Tester Training Course 2011
  • 32. A supermarket has a loyalty scheme that is offered to all customers. Loyalty cardholders enjoy the benefits of either additional discounts on all purchases (rule 3) or the acquisition of loyalty points (rule 4), which can be converted into vouchers for the supermarket or to equivalent points in schemes run by partners. Customers without a loyalty card receive an additional discount only if they spend more than £100 on any one visit to the store (rule 2), otherwise only the special offers offered to all customers apply (rule 1). Tester Training Course 2011
  • 33. Rule 1 Rule 2 Rule 3 Rule 4 Customer without loyalty card T T F F Customer with loyalty card F F T T Extra discount selected _ _ T F Spend > £100 F T _ _ No discount T F F F Extra discount F T T F Loyalty points F F F T  Create at least one test case for each rule • Conditions specify inputs • Actions specify outputs Tester Training Course 2011
  • 34.  based on state transition diagram  Example: ATM State Transition NOT OK Start 2nd try 3rd try 1st try NOT OK Access wait Eat to for PIN card Account Tester Training Course 2011
  • 35.  Four different levels of coverage • State Coverage • Event Coverage • Path coverage • Transition coverage Tester Training Course 2011
  • 36.  State Coverage  Generally this is a weak level of test coverage 2 NOT OK 1 Start 2nd try 3rd try 1st try NOT OK Access wait Eat to for PIN card Account Tester Training Course 2011
  • 37.  Event Coverage  also is a weak level of coverage 2 NOT OK 1 Start 2nd try 3rd try 1st try NOT OK Access wait Eat to for PIN card Account Tester Training Course 2011
  • 38.  Path Coverage • is the strongest level of coverage • but may not be feasible • if the state transition diagram has loops, then the number of possible paths may be infinite Tester Training Course 2011
  • 39.  Transition Coverage • good level of coverage with out generating large numbers of tests • this level is generally the one recommended NOT OK Start 2nd try 3rd try 1st try NOT OK Access wait Eat to for PIN card Account Tester Training Course 2011
  • 41.  To exercise a complete process flow  At least one test case for the main success scenario  At least one test case for each extension Tester Training Course 2011
  • 42.  Test oracle  Partial oracle Tester Training Course 2011
  • 43.  Based on “What”, with out “How”  Test cases can be designed: • Input/output variables with their ranges and boundaries • Business rules • System behaviors • System’s functionalities from start to finish Tester Training Course 2011
  • 44. Question Purpose of test design technique is Identifying test conditions only, not Identifying test cases Identifying test conditions and Identifying test cases Not Identifying test conditions, Identifying test cases only Identifying test conditions or Identifying test cases Tester Training Course 2011
  • 45. Question ’X’ has given a data on a person age, which should be between 1 to 99. Using BVA which is the appropriate one 0, 1, 2, 99 1, 99, 100, 98 0, 1, 99, 100 -1, 0, 1, 99 Tester Training Course 2011
  • 46. Given the following state diagram: Which of the following series of state transitions? S1 S0 S1 S2 S0 D, A, B A, B, C, D D, A, B, C A, B, C Tester Training Course 2011
  • 47. Question Which type of test design techniques does the following statement best describe a procedure to derive test cases based on the specification of a component? White Box Techniques Black Box Techniques Glass Box Techniques Experience Based Techniques Tester Training Course 2011
  • 48. Given the following state diagram: Which of the following series of state transitions contains an invalid transition which may be indicate a fault in the system design? Login Browse Basket Checkout Basket Checkout Pay Logout. Login Browse Basket Checkout Pay Logout. Login Browse Basket Checkout Basket Logout. Login Browse Basket Browse Basket Checkout Pay Logout. Tester Training Course 2011
  • 49. Question Which of the following is MOST characteristic of specification based(black-box) Test cases can be easily automated Test cases are independent of each other Test cases are derived systematically from models of the system Test cases are derived systematically from the delivered code Tester Training Course 2011
  • 50. Question Use cases can be performed to test Performance testing Business scenarios Static testing Unit testing Tester Training Course 2011
  • 51. Question Which is NOT a test oracle The existing system(For a benchmark) Indinidual’s knowlege The code User manual Tester Training Course 2011
  • 52. Question The Test Cases Derived from use cases Are most useful in uncovering defects in the process flows during real world use of the system Are most useful in uncovering defects in the process flows during the testing use of the system Are most useful in covering the defects in the process flows during real world use of the system Are most useful in covering the defects at the Integration Level Tester Training Course 2011
  • 53.  Structure-based approach • based on structures of system or component • also called glass-box techniques  What we may be interested in structures • Component level: program structures • Integration level: the way components interact with others • System level: how user will interact with the system Tester Training Course 2011
  • 55.  Statement Testing  Decision Testing  Path Testing Tester Training Course 2011
  • 56.  Design test cases based on what statements which should be exercised  Statement coverage • percentage of executable statements exercised number of statements exercise • = total number of statements • is normally measured by a software tool • typical ad hoc testing achieves 60 – 75% Tester Training Course 2011
  • 57. 1 Program Coverage Example 2 A, X: Integer 3 Begin 4 Read A 5 Read X 6 If A > 1 AND X = 2 Then 7 X = X/A 8 Endif 9 If A = 2 OR X = 2 Then 10 X = X + 1 11 Endif 12 End The number of executable statements: 6 Test case 1: A=1, X=2; 4/6 or 67% Test case 1: A=4, X=2; 6/6 or 100% Tester Training Course 2011
  • 58. 1 Program BestInterest 2 Interest, Base Rate, Balance: Real 3 Begin 4 Base Rate = 0.035 5 Interest = Base Rate 6 Read (Balance) 7 If Balance > 1000 Then 8 Interest = Interest + 0.005 9 If Balance < 10000 Then 10 Interest = Interest + 0.005 11 Else 12 Interest = Interest + 0.010 13 Endif 14 Endif 15 Balance = Balance × (1 + Interest) 16 End What test cases to achieve 100 percent statement coverage Tester Training Course 2011
  • 59.  Design test cases based on what decision outcomes which should be exercised  same as Branch Testing  Decision coverage • percentage of decision outcomes exercised number of decision outcome exercised • = total number of decision outcomes • is normally measured by a software tool • typical ad hoc testing achieves 40 – 60% Tester Training Course 2011
  • 60. 1 Program BestInterest 2 Interest, Base Rate, Balance: Real 3 Begin 4 Base Rate = 0.035 5 Interest = Base Rate 6 Read (Balance) 7 If Balance > 1000 Then 8 Interest = Interest + 0.005 9 If Balance < 10000 Then 10 Interest = Interest + 0.005 11 Else 12 Interest = Interest + 0.010 13 Endif 14 Endif 15 Balance = Balance × (1 + Interest) 16 End What test cases to achieve 100 percent decision coverage Tester Training Course 2011
  • 61. 1 float dc(int a,b,c,d,h) 2 Begin 3 float r 4 If a=0 Then return 0 5 Endif 6 int f=0; 7 If (a=b) or ((c=d) and check(h)) Then 8 f=f+1; 9 Endif 10 f=f+1; 11 return 1/f 12 End What test cases to achieve 100 percent decision coverage Tester Training Course 2011
  • 62.  Design test cases based on Boolean sub- expression (BsE)  Condition coverage • percentage of Boolean sub-expression outcomes exercised number of BsE outcome exercised • = total number of BsE outcomes • There are no industry standard objectives for condition coverage Tester Training Course 2011
  • 63.  Example 7 If (a=b) or ((c=d) and check(h)) Then Predicate True False a=b Test case 1 Test case 2 dc(1,1,x,y,z) dc(1,2,x,y,z) c=d Test case 3 Test case 2 dc(1,2,2,2,z) dc(1,2,1,2,z) check(h) Test case 3 Test case 4 dc(1,2, 2,2,z) dc(1,2, 2,2, z’) Tester Training Course 2011
  • 64.  Design test cases based on what paths which should be exercised  Path coverage • percentage of paths exercised number of paths exercised • = total number of paths Tester Training Course 2011
  • 65. 1 2 3 4 1 2 1 2 1 2 3 ? ? ? ? ? ? Tester Training Course 2011
  • 66. 1 2 3 4 5 6 7 8 …. for as many times as it is possible to go round ? the loop (this can be unlimited, i.e. infinite) Tester Training Course 2011
  • 67. Question If the pseudo code below were a programming language, how many tests are required to achieve 100% statement coverage? 1 If x=3 then 1 2 Display_messageX; 3 If y=2 then 2 4 Display_messageY; 5 Else 3 6 Display_messageZ; 7 EndIf 4 8 Else 9 Display_messageZ; 10 EndIf Tester Training Course 2011
  • 68. Question If the pseudo code below were a programming language, how many tests are required to achieve 100% decision coverage? 1 Program AgeCheck 2 CandidateAge: Integer; 3 Begin 4 Read(CandidateAge) 1 5 If CandidateAge < 18 Then 6 Print (“Candidate is too young”) 2 7 Else 8 If CandidateAge > 30 Then 9 Print (“Candidate is too old”) 3 10 Else 11 Print(“Candidate may join Club 18–30”) 12 Endif 4 13 Endif 14 End Tester Training Course 2011
  • 69.  is an important measure in systematic approach  But • Coverage techniques measure only one dimension • measures only what has written In practice, are always multi-dimension and have something which have not been written Tester Training Course 2011
  • 70. Question Which of the following is NOT true of test coverage criteria? Test coverage criteria can be measured in terms of items exercised by a test suite A measure of test coverage criteria is the percentage of faults found A measure of test coverage criteria is the percentage of user requirements covered Test coverage criteria are often used when specifying test completion criteria Tester Training Course 2011
  • 71.  Unscripted testing  Experience based approach  Some techniques • Error guessing • Exploratory testing A testing approach that is only rigorous, thorough and systematic is in complete Tester Training Course 2011
  • 72.  no rules, no script  situations in which the software may not be able to cope are identified based on experience(feel)  Consider: • past failures • brain storming • intuition • “what is the craziest thing we can do” Tester Training Course 2011
  • 73.  always worth including  after systematic techniques have been used  can find some faults that systematic techniques can miss  a ‘mopping up’ approach  supplements systematic techniques Tester Training Course 2011
  • 74. Details will be focused in Agile testing lectures Tester Training Course 2011
  • 75. Question A test design technique is A process for determining expected outputs A process for selecting test cases A way to measure the quality of software A way to measure in a test plan what has to be done Tester Training Course 2011
  • 77. Question Error guessing A supplements formal test design techniques Can only be used in component, integration and system testing Is only performed in user acceptance testing Is not repeatable and should not be used Tester Training Course 2011
  • 78. Question Error guessing is An appropriate way of deriving system tests Only used if good requirements are not available Only used when good requirements are available The most appropriate way of deriving system tests Tester Training Course 2011
  • 79. Question Random testing A black-box testing technique Program is tested randomly sampling the input Both A and B None of the above Tester Training Course 2011