Programming Interview Question for CSS

Test Design Techniques

Test - Test cases
Design - Test cases using Test Design Technique
Techniques - It is a procedure to choose test cases

Technique:
  1. The technique is a procedure to choose the test case or test script.
  2. The organization has given equal importance to structural and function techniques.
  3. Techniques will reduce time, budget, resources.
  4. We can maintain the uniqueness of our process when we go with the techniques.
  5. We can avoid fault multiplication.
  6. Using techniques we can get more number of defects.
  7. The technique will allow comparing things.
  8. The technique will allow measuring the activities.
  9. Using techniques we can prepare efficient and effective test cases.
  10. Using techniques there is a process improvement.
  11. Techniques allow traceability(Forward, Backward).
  12. The technique is the best practice for implementing testing to get optimal quality.

Testing Techniques

White Box testing technique:
A developer will be responsible to implement this technique.
Here they can identify the quality of the internal structure of the system.
Technical skills are mandatory.
This technique is also called the glass box/ structural/ open-ended technique.

Black Box testing technique:
The test engineers will be responsible to implement this technique.
Here we can get the quality from the external part of the behavior of the application.
Technical skills are not mandatory.
This technique is also called the closed box/ behavioral/ Single-ended/closed-ended technique.


Dynamic design techniques

Equivalence Class Partition (ECP):

To convert the huge amount of data into finite no of partitions.
Eg: Here by taking the Random data between the partitions we can prepare positive test cases.
Here we can prepare negative test cases by taking the random data which is less than the minimum and more than the maximum.

Components:
  1. Requirements Number
  2. Requirements Name
  3. Test Condition
  4. Valid ECP
  5. Invalid ECP
  6. Expected Data
  7. Tag
Procedure to implement the ECP technique:
Understand the given SRS thoroughly
Identify the portions from the SRS
Identify Valid ECP
MIN - MAX (Min to Max)
Prepare the invalid ECP using the below formula
<Min    >Max
Prepare ECP table using given below formula 

Reg.No|Reg. Name |Test condition|Valid ECP|Tags|Expected data|Invalid ECP|Tags|Expected data  
We prepare this table to prepare a test case using a technique.

Boundary Value Analysis (BVA):
This technique is used to prepare test cases by considering boundary values.
  • Minimum 
  • Just above Minimum
  • Nominal value
  • Just below Maximum
  • Maximum
Look at the below example.
If (applicant age >=0 && Applicant age <=16)
hire status = "No"
If (applicant age >=16 && Applicant age <=18)
hire status = 'PART'
If the first instance, if condition is true, as per rule software is true.

Components:
  1. Reg.No
  2. Reg. Name
  3. Test Condition
  4. Valid BVA
  5. Invalid BVA
Procedure to implement BVA technique:
Understand the given SRS thoroughly.
Identify the boundary conditions from the given SRS.
Prepare valid BVA by using the given below 
                    (Min, Max)
Prepare invalid BVA by using the given formula
            Min - 1
            Max + 1 
Prepare the BVA table
Reg.No|Reg. Name |Test condition|Valid BVA|Tags|Expected data|Invalid BVA|Tags|Expected data  
Prepare the test cases by interacting with the table.

Comments