当前位置:网站首页>嵌入式TC 测试用例
嵌入式TC 测试用例
2022-07-04 19:47:00 【StarSkyHorse】
嵌入式TC 测试用例
如何测试一个函数。 如何测试一个helper函数?
- 函数头上会描述参数是输入和输出,(函数头的信息是API做的事情)。
- helper 只关心本层函数的行为。如果有调用行为,在选参上做调整以达到满足分支覆盖、语句覆盖。
- 输入参数选取:
边界正常值(最大、最小) 等价正常值(较大值、较小值、任意的中间值)
边界鲁棒值(最大、最小) 等价鲁棒值(任意的中间值)
输出范围取值 (最大、最小、任意中间值)- 多参数正常边界,一个参数在边界正常值变化, 其他参数在等价正常值任意变化。
- 多参数正常等价, 一个参数在等价正常值变化,其他参数在等价正常值任意变化。
- 多参数鲁棒边界, 一个参数在边界鲁棒值变化, 其他参数在等价正常值任意变化。
- 多参数鲁棒等价, 一个参数在等价鲁棒值变化, 其他参数在等价正常值任意变化。
- 输出参数 根据输出范围取值。
总结
经过自己手写后思路会变得更清晰些。
边栏推荐
- idea配置标准注释
- 企业数字化转型最佳实践案例:基于云的数字化平台系统安全措施简介与参考
- How does the computer save web pages to the desktop for use
- 托管式服务网络:云原生时代的应用体系架构进化
- Summary of the mistakes in the use of qpainter in QT gobang man-machine game
- BFC面试简述
- [ismb2022 tutorial] the picture shows the precision medicine of learning. Marinka zitnik, Harvard University, keynote speaker, with 87 ppt
- 阿里测试师用UI自动化测试实现元素定位
- Automatic insertion of captions in word
- 网络命名空间
猜你喜欢

黄金k线图中的三角形有几种?
![[in-depth learning] review pytoch's 19 loss functions](/img/c1/07650a6755d5c64ebf8ce370456fb7.png)
[in-depth learning] review pytoch's 19 loss functions

Quelques suggestions pour la conception de l'interface

Win11系统wifi总掉线怎么办?Win11系统wifi总掉线的解决方法

字节测试工程师十年经验直击UI 自动化测试痛点

Flet教程之 06 TextButton基础入门(教程含源码)

idea配置标准注释

阿里测试师用UI自动化测试实现元素定位

From automation to digital twins, what can Tupo do?

In the face of the same complex test task, why can the elder sort out the solution quickly? Ali's ten-year test engineers showed their skills
随机推荐
Vue cleans up the keepalive cache scheme in a timely manner
【ISMB2022教程】图表示学习的精准医疗,哈佛大学Marinka Zitnik主讲,附87页ppt
接口设计时的一些建议
tcp为啥是三次握手和四次挥手
Selected review | machine learning technology for Cataract Classification / classification
word中插入图片后,图片上方有一空行,且删除后布局变乱
See how Tencent does interface automation testing
Flet教程之 08 AppBar工具栏基础入门(教程含源码)
The concept and application of hash table
Understand Alibaba cloud's secret weapon "dragon architecture" in the article "science popularization talent"
go语言笔记(4)go常用管理命令
What if win11u disk refuses access? An effective solution to win11u disk access denial
How does the computer save web pages to the desktop for use
LeetCode 8. 字符串转换整数 (atoi)
BFC面试简述
阿里云国际版CDN的优势
Flet tutorial 07 basic introduction to popupmenubutton (tutorial includes source code)
Android原生数据库的基本使用和升级
go defer的使用说明
Alibaba testers use UI automated testing to achieve element positioning