当前位置:网站首页>嵌入式TC 测试用例
嵌入式TC 测试用例
2022-07-04 19:47:00 【StarSkyHorse】
嵌入式TC 测试用例
如何测试一个函数。 如何测试一个helper函数?
- 函数头上会描述参数是输入和输出,(函数头的信息是API做的事情)。
- helper 只关心本层函数的行为。如果有调用行为,在选参上做调整以达到满足分支覆盖、语句覆盖。
- 输入参数选取:
边界正常值(最大、最小) 等价正常值(较大值、较小值、任意的中间值)
边界鲁棒值(最大、最小) 等价鲁棒值(任意的中间值)
输出范围取值 (最大、最小、任意中间值)- 多参数正常边界,一个参数在边界正常值变化, 其他参数在等价正常值任意变化。
- 多参数正常等价, 一个参数在等价正常值变化,其他参数在等价正常值任意变化。
- 多参数鲁棒边界, 一个参数在边界鲁棒值变化, 其他参数在等价正常值任意变化。
- 多参数鲁棒等价, 一个参数在等价鲁棒值变化, 其他参数在等价正常值任意变化。
- 输出参数 根据输出范围取值。
总结
经过自己手写后思路会变得更清晰些。
边栏推荐
- 【解决方案】PaddlePaddle 2.x调用静态图模式
- Practice examples to understand JS strong cache negotiation cache
- 针对深度学习的“失忆症”,科学家提出基于相似性加权交错学习,登上PNAS
- GVM use
- Quelques suggestions pour la conception de l'interface
- 接口设计时的一些建议
- Idea plug-in
- Flet tutorial 04 basic introduction to filledtonalbutton (tutorial includes source code)
- Hash哈希竞猜游戏系统开发如何开发丨哈希竞猜游戏系统开发(多套案例)
- ICML 2022 | meta proposes a robust multi-objective Bayesian optimization method to effectively deal with input noise
猜你喜欢

How does win11 search for wireless displays? Win11 method of finding wireless display device

What if the WiFi of win11 system always drops? Solution of WiFi total drop in win11 system

网络命名空间

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

针对深度学习的“失忆症”,科学家提出基于相似性加权交错学习,登上PNAS

From automation to digital twins, what can Tupo do?

剑指 Offer II 80-100(持续更新)

RFID仓储管理系统解决方案的优点

接口设计时的一些建议

NetCore3.1 Json web token 中间件
随机推荐
go语言笔记(4)go常用管理命令
HMS Core 机器学习服务
电脑页面不能全屏怎么办?Win11页面不能全屏的解决方法
go语言笔记(2)go一些简单运用
接口设计时的一些建议
Managed service network: application architecture evolution in the cloud native Era
实操自动生成接口自动化测试用例
黄金k线图中的三角形有几种?
Flet tutorial 06 basic introduction to textbutton (tutorial includes source code)
Automatic generation of interface automatic test cases by actual operation
jekins初始化密码没有或找不到
What if the computer page cannot be full screen? The solution of win11 page cannot be full screen
What if the WiFi of win11 system always drops? Solution of WiFi total drop in win11 system
Implementation of redis distributed lock
Ten years' experience of byte test engineer directly hits the pain point of UI automation test
科普达人丨一文看懂阿里云的秘密武器“神龙架构”
九齐NY8B062D MCU规格书/datasheet
LeetCode 7. 整数反转
Reinforcement learning - learning notes 2 | value learning
Redis分布式锁的实现