Things you should know about functional testing

2020-12-10 20:31:47
philip
Original 710
Summary : 1. Make a test plan2. Design test cases, test cases: it is an example used to check whether the software meets the requirements. The basic elements include purpose, preconditions, input data or actions, and expected results3. If the "startup criteria" are met, then perform the test4. Write test report5. If the "completion criterion" is met, then end the testTest start criteria.

Things you should know about functional testing


Functional Testing Disadvantages

1. Large number of test cases

2. Test cases may produce a lot ofredundancy

3. The coverage rate cannot reach 100%

Functional Testing  Advantages

It has nothing to do with how thesoftware is implemented. If the implementation changes, functional test casesare still available

Method: (commonly used)

  • Functional decomposition
  • Equivalence class division
  • Boundary value analysis
  • Causality Diagram

1. Functional decomposition: 

Through functional decomposition, the content of software functional testing can be clarified, making software functional testing measurable, which is conducive to testing supervision and management.


2. Equivalence class division: divide the input or output fields of the program into different intervals or different data classes in order to derive test cases

Effective equivalence class: a collection of input data that is reasonable and meaningful to the needs of the program
Invalid equivalence class: a collection of unreasonable and meaningless data for the input or output of the program
Used to check the program's ability to handle invalid data


3. Boundary value analysis: 

Boundary value analysis is a supplement to the equivalence class. Defects are often missed in the corners and clustered on the boundary. It is easier to find errors in selecting the boundary area of the input condition as the test data than the intermediate data.


4. Causality diagram: 

Considering the interconnection and combination of input conditions, the cause and effect diagram finally generates a judgment table, which is suitable for checking various combinations of program input conditions
Judgment table composition: condition stake, action stake, condition item, action item.


5. Other test methods: wrong speculation

Test process


1. Make a test plan

2. Design test cases, test cases: it is anexample used to check whether the software meets the requirements. The basicelements include purpose, preconditions, input data or actions, and expectedresults

3. If the "startup criteria" are met,then perform the test

4. Write test report

5. If the "completion criterion"is met, then end the test Test start criteria:

  • The test plan has been developed andapproved;
  • The test case has been designed andapproved;
  • The tested object has been developedand is waiting for testing. 

Test start criteria:

  • The pass rate of functional test cases reaches 100%;
  • When the pass rate of non-functional test cases reaches 90%.
  • The "defect density during testing period" within n adjacent CPU hours is all lower than a certain value m. For example, n is greater than 10 and m is less than or equal to 1.

Things testers should know:

  • Testing can improve the quality of software, but improving quality cannot rely on testing
  • The test can prove the existence of defects, but cannot prove that the software does not exist
  • The 80-20 principle: 80% of the defects exist in 20% of the modules, and the modules that often make mistakes will often make mistakes after they are corrected.
Write a Comment
Comment will be posted after it is reviewed.