Wednesday, 12 December 2012

Functional and System specification based test case design | Manual Testing Tutorial PDF

Functional and System specification based test case design:

In general, the test engineers prepare maximum test case depending upon functional & system specifications in SRS.
From the above diagram, test engineers prepare test cases depending upon the SRS through the below mentioned approach
Step 1: Collect responsible functional & system specification including dependents
Step 2: Select one specification from that collected list.
Step 3: Study the specification in terms of base state, inputs, outputs, normal flow, end state, alternative flows and executions.
Step 4: Prepare test case titles/test scenarios with respect to above studied info.
Step 5: Review the test case titles for completeness & Correctness.
Step 6: Prepare test case document.
Step 7: Go to Step2 until all responsible specifications are studied.

Functional Specification 1: -

A login process allows user ID & password to authorize users. From customer requirements user ID takes 9-numarics in lower case from 4 to 16 characters long. The password object takes alphabets in lower case from 4 to 8 characters long. Prepare test case titles or scenario.
Test Case Title 1: Verify user ID

Boundary Value Analysis (Size)                 Equivalence Class partition (Type)
Min-1 ----- 3  Characters -------Fail                Valid      Invalid
Min   ----  4  Characters -------Pass                  a - z      A - Z
Min+1 ----  5  Characters -------Pass                0 – 9    Special Chars.
Max-1 ----  15 Characters ------ Pass                           Blank field.
Max   ----  16 Characters ------ Pass
Max+1 --    17 Characters ------ Fail
Test case Title 2: Verify password
Boundary Value Analysis (Size)                 Equivalence Class Partition (Type)
Min-1 ----- 3 Characters ---- Fail                   Valid       Invalid
Min   ----- 4 Characters ---- Pass                   a – z       A - Z
Min+1 ---   5 Characters ---- Pass                  0 - 9       Special Chars
Max-1 ----  7 Characters ---- Pass                                 Blank Field
Max   ----  8 Characters ---- Pass
Max+1 –     9 Characters ---- Fail

Test Case Title 3: Verify Login Information
        User ID              Password              Criteria
     Valid Value           Valid Value               Pass
     Valid Value           Invalid Value             Fail
     Invalid Value         Valid Value               Fail
     Blank Value           Valid Value              Fail
     Valid Value           Blank Value              Fail
     Invalid Value         Blank Value              Fail
     Blank Value           Invalid Value            Fail
     Blank Value           Blank Value             Fail

Functional specification 2:

In an insurance application, can apply for different types of policies. From customer requirements, the system asks age, when a user selects type insurance. The age value should be >17 years and should be < 60 years.
Prepare test case titles:
Test case title 1: Verify type’ A’ insurance selection.
Test case title 2: verify age focus when selects type ‘A’ insurance.
Test case title 3: verify age value

Boundary value Analysis (BVA)             Equally class partition (Type)
Min-1  ----- 17 years ------ Fail          Valid   Invalid
Min    ----- 18 years ------ pass          0 - 9    a - z
Min+1  ----  19 years ------ pass                    A - Z
Max-1  ----  58 years ------ pass                    Special Characters
Max    ----  59 years ------ pass                    Blank fields
Max+1  –     60 years ------ pass

Functional Specification 3: -

In a shopping application, users can apply for p items purchase. From customer requirements, the system allows users to select item no. and entry of quantity upto 10 items. System returns the price of each item and total amount with respect to given quantity.
Test case Titles:
Test case Title 1: verify item number selection
Test case Title 2: Verify Quantity value
Boundary Value Analysis (BVA)             Equivalence Class Partition (Type)
Min-1 ----  0   item ------ Fail                          Valid    Invalid
Min   ----   1    item ------  Pass                       0 – 9     a - z
Min+1 ---   2   items ----- Pass                                     A - Z
Max-1 ----  9  items ----  Pass                                     Special Characters
Max   ---    10 items ----   Pass                                    Blank field
Max+1 –     11 items ----  Fail
Test case title 3: verify total = price of one item X given quantity.

Functional Specification 4: -

Prepare test case shutdown for computer operation.
Test case title 1: verify if all the windows are closed when shutting down.
Test case title 2: verify shutdown option selection using Alt+F4.
Test case title 3: verify shutdown option selection using run command.
Test case title 4: verify shutdown operation.
Test case title 5: verify shutdown operation when a process is running.
Test case title 6: verify shutdown operation using power off button.

Functional Specification 5: -

Prepare test case titles for washing machine operation.
Prepare test case titles: -
Test case title 1: Verify Power supply
Test case title 2: Verify door open
Test case title 3: verify water filling with detergent
Test case title 4: verify cloths filling
Test case title 5: verify door close
Test case title 6: verify door close with cloths overflow.
Test case title 7: verify washing settings selection
Test case title 8: verify washing operation
Test case title 9: verify washing operation with lack of water.
Test case title10: verify washing operation with cloths overload
Test case title11: verify washing operation with improper settings
Test case title12: verify washing operation with machinery problem.
Test case title13: verify washing operation due to water leakage through door.
Test case title14: Verify washing operation due to door open in the middle of the process.
Test case title15: verify washing operation with improper power.
NOTE: Title 14 & Title 15 Comes Under Security Testing.

 Functional Specification 6: -

In a library system, users apply for personal ID Registration.
In a library registration form, the users need to fill the below fields.
=> Name, Address with street, city and gender are alphabets.
=> Age, PIN Code and phone no.’s are numeric with valid rules.
=> E-mail Id and optional & follows www rules.
After validation of the above fields, the system returns user ID. This user ID will be in the below format.
=> MTL_mm_dd_yy_xxxx
=> MTL_Mother Theresa Library
=> mm_month
=> dd_date
=> yy_year
=> xxxx_four digits valid no.
Note:
* Name box characters range Are 4 chars to 20 chars.
* City Box characters range are 4 chars to 15 chars.
* Pin Code number box only 6 characters.
 Prepare test case Titles:
Test case title 1: Verify all fields are empty or not.
Test case title 2: Verify user name is containing characters.
    Boundary Value Analysis (BVA)             Equivalence Class Partition (Type)
Min-1  ----- 3  Characters ------  Fail                Valid     Invalid
Min    ----- 4  Characters ------- Pass                a – z      A - Z
Min+1  ----- 5  Characters ------- Pass              0 - 9      Special Characters
Max-1  ----- 19 characters-------- Pass                           Blank field
Max    ----- 20 characters ------- Pass
Max+1  ----- 21 characters ------- Pass

Test case title 3: Verify the address Equivalence Class Partition (Type)
            Valid           Invalid
            A – Z          Blank Field
            a – z
            0 - 9
       Special Characters

Test case title 4: Verify city
Equivalence Class Partition (Type)             Boundary Value Analysis (BVA)
  Valid       Invalid                                     Min-1 ---- 3  Characters ---- Fail
  A – Z    Blank field                                Min   ----   4  Characters ---- Pass
  a – z     Special characters                     Min+1 ---- 5  Characters ---- Pass
  0 – 9                                                    Max-1 ---- 14 Characters ---- Pass
                                                              Max   ---- 15  Characters ---- Pass
                                                              Max+1 ---- 16 Characters ---- Fail

Test case title 5: Verify Pin code number
Equivalence Class Partition (Type)            Boundary Value Analysis (BVA)
    Valid     Invalid
    0 – 9     a – z,                                             Min = max = 6 characters ------ Pass
              A – Z,                                                                   5 characters ------ Fail
            special characters,                                                   7 characters ------ Fail
            Blank field.
Test case title 6 : Verify E-mail ID
Equivalence Class Partition (Type)
      Valid      Invalid
      a – z,     A - Z
      0 – 9      Special Characters
   Blank field
Test case title 6 : Verify Phone number field.
Boundary Value Analysis (BVA)            Equivalence Class Partition (Type)
Min-1 ---- 3 numbers ---- Fail                  Valid       Invalid
Min   ---- 4 numbers ---- Pass                  0 – 9       a - z
Min+1 ---  5 numbers ---- Pass                               A - Z
Max-1 ---  7 numbers ---- Pass                              Special Characters
Max   ---- 8 numbers ---- Pass                               Blank field
Max+1 ---  9 numbers ---- Fail
Test case title 6 : Verify age 3 digit number
Boundary Value Analysis (BVA)                Equivalence Class Partition (Type)
Min = Max ---2 digits ----- Pass                   Valid     Invalid
                        1 digit ------ Fail                    0 – 9     a - z
                        3 digits ----- Fail                                A – Z
                                                                                  Special characters
                                                                                  Blank field
Test case title 6 : Verify Gender
Equivalence Class Partition (Type)
Valid     Invalid
a – z     A – Z
           0 – 9
        Special Characters
        Blank field

No comments: