当前位置:网站首页>Embedded TC test case

Embedded TC test case

2022-07-04 21:04:00 StarSkyHorse

The embedded TC The test case

How to test a function . How to test a helper function ?

  1. The function header will describe that the parameters are input and output ,( The information in the function header is API Do the things ).
  2. helper Only care about the behavior of functions at this level . If there is a calling behavior , Adjust the selection parameters to meet the branch coverage 、 Statement override .
  3. Input parameter selection :
    Boundary normal value ( Maximum 、 Minimum ) Equivalent normal value ( Larger value 、 Smaller value 、 Any intermediate value )
    Boundary robust value ( Maximum 、 Minimum ) Equivalent robust value ( Any intermediate value )
    Output range value ( Maximum 、 Minimum 、 Any intermediate value )
    • Multi parameter normal boundary , A parameter changes at the boundary normal value , Other parameters change arbitrarily at the equivalent normal value .
    • Multi parameter normal equivalence , A parameter changes at the equivalent normal value , Other parameters change arbitrarily at the equivalent normal value .
    • Multi parameter robust boundary , A parameter changes in the boundary robust value , Other parameters change arbitrarily at the equivalent normal value .
    • Multi parameter robust equivalence , A parameter changes in the equivalent robust value , Other parameters change arbitrarily at the equivalent normal value .
    • Output parameters Take values according to the output range .

summary

After writing by yourself, your thoughts will become clearer .

原网站

版权声明
本文为[StarSkyHorse]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/185/202207041946536359.html