当前位置:网站首页>嵌入式TC 测试用例
嵌入式TC 测试用例
2022-07-04 19:47:00 【StarSkyHorse】
嵌入式TC 测试用例
如何测试一个函数。 如何测试一个helper函数?
- 函数头上会描述参数是输入和输出,(函数头的信息是API做的事情)。
- helper 只关心本层函数的行为。如果有调用行为,在选参上做调整以达到满足分支覆盖、语句覆盖。
- 输入参数选取:
边界正常值(最大、最小) 等价正常值(较大值、较小值、任意的中间值)
边界鲁棒值(最大、最小) 等价鲁棒值(任意的中间值)
输出范围取值 (最大、最小、任意中间值)- 多参数正常边界,一个参数在边界正常值变化, 其他参数在等价正常值任意变化。
- 多参数正常等价, 一个参数在等价正常值变化,其他参数在等价正常值任意变化。
- 多参数鲁棒边界, 一个参数在边界鲁棒值变化, 其他参数在等价正常值任意变化。
- 多参数鲁棒等价, 一个参数在等价鲁棒值变化, 其他参数在等价正常值任意变化。
- 输出参数 根据输出范围取值。
总结
经过自己手写后思路会变得更清晰些。
边栏推荐
猜你喜欢

网络命名空间

实操自动生成接口自动化测试用例

电脑共享打印机拒绝访问要怎么办

测试员的算法面试题-找众数

Aiming at the "amnesia" of deep learning, scientists proposed that based on similarity weighted interleaved learning, they can board PNAS

Alibaba testers use UI automated testing to achieve element positioning

ICML 2022 | meta proposes a robust multi-objective Bayesian optimization method to effectively deal with input noise

【观察】联想:3X(1+N)智慧办公解决方案,释放办公生产力“乘数效应”

Flet tutorial 06 basic introduction to textbutton (tutorial includes source code)

Flet教程之 05 OutlinedButton基础入门(教程含源码)
随机推荐
Hash quiz game system development how to develop hash quiz game system development (multiple cases)
接口設計時的一些建議
Common verification rules of form components -1 (continuously updating ~)
What if the brightness of win11 is locked? Solution to win11 brightness locking
[in-depth learning] review pytoch's 19 loss functions
MySQL - database query - use of aggregate function, aggregate query, grouping query
记一次重复造轮子(Obsidian 插件设置说明汉化)
太方便了,钉钉上就可完成代码发布审批啦!
卷积神经网络在深度学习中新发展的5篇论文推荐
Remember to build wheels repeatedly at one time (the setting instructions of obsidian plug-in are translated into Chinese)
企业数字化转型最佳实践案例:基于云的数字化平台系统安全措施简介与参考
Some suggestions for interface design
哈希表、哈希函数、布隆过滤器、一致性哈希
Cdga | six principles that data governance has to adhere to
Four traversal methods of binary tree, as well as the creation of binary tree from middle order to post order, pre order to middle order, pre order to post order, and sequence [specially created for t
Win11共享文件打不开怎么办?Win11共享文件打不开的解决方法
jekins初始化密码没有或找不到
托管式服务网络:云原生时代的应用体系架构进化
看腾讯大老如何做接口自动化测试
How does the computer save web pages to the desktop for use