当前位置:网站首页>How to write test cases
How to write test cases
2022-06-21 16:39:00 【Multi surveyor 111】
The test case : Conduct the test instructively , A description that helps to prove software functions or find software defects . Data design and step design of each test point .
The importance of test cases :
(1)、 Facilitate the implementation of the test plan
Generally, it is mainly applicable to integration testing 、 The system test 、 regression testing . Know your progress according to use cases
(2)、 Plan the preparation of test data
Such as registration , Prepare your mobile phone number in advance 、 ID number 、 No duplicate user name , Mailbox, etc
(3)、 The root of writing test scripts
The central task of automatic testing is to write test scripts . Test scripts are based on test cases .
(4)、 Benchmark for evaluating test results
Through the coverage and error rate of test cases , You can judge the test results , Whether it can be released

(5)、 Analyze defect criteria
Collect defects , Compare test cases . Analyze whether it is missed test or defect recurrence . It reflects the imperfection of the test , Corresponding test cases should be supplemented immediately
* How to write the test title : Test point , Refine and decompose the test points . such as : Enter the correct user name 、 password , Can I log in normally .
Note the format of test case writing :
(1)、 The test title must describe the test point ( Verify what you write ), Simple and clear , There are no duplicates
(2)、 The test steps should be instructive , It is better to include specific test data in the test data input
(3)、 The expected result is the only , Cannot appear “ Sending succeeded or failed ”
How to write test cases ?
Use cases contain : Use case number 、 Function module 、 Use case title 、 Prerequisite 、 Operation steps 、 Expected results ( Including judgment criteria )、 The actual result 、 remarks
Compiling mode : According to the function + Business logic
(1)、 First, ensure that the single function is normal
(2)、 Then the business logic of combining functions is right
such as : Sign in 、 Recharge 、 Cash withdrawal and other functions are good . Business logic , It is to combine all the functions , See if it's good
Use case coverage : Contains positive and negative use cases
(1)、 Positive use cases : According to the functional modules , For the functional modules to be tested , All test cases for normal input data are written
(2)、 Negative use case : For example, login failure , Enter illegal data , Violation of unique constraints, etc
For more information on testing techniques, please pay attention to : Shenzhen duosurveyor software and Technical Service Co., Ltd a
边栏推荐
- Write commodity table with JSP
- Uniswap decentralized exchange system development scheme
- Web page automation practice 4. get the name, price and rating information of all hotels and write them into the file
- 谷歌 Chrome 浏览器全新下载窗口将支持文件拖拽,Edge 已经支持
- Web3 security series 𞓜 attack types and lessons learned
- MySQL improves efficiency
- KindEditor上传图片及使用
- Web网页自动化实战《5.获取所有酒店的名字、价格、评分信息,并写入文件》下篇
- [evaluation with prizes] you can give feedback on my products. There is a prize!
- Web网页自动化实战《3.在艺龙网中,根据城市+日期+关键词精准匹配了酒店》下篇
猜你喜欢

学习软件“学习通”数据库疑似发生信息泄露,泄露学生信息达1亿多条

How fragrant! 15 minutes to complete intelligent annotation, model training, service deployment

Standing at the digital tuyere, how can tooling enterprises' fly up '

Deep understanding of zero copy technology

IDC咨询:2022年中国关系型数据库软件市场,变革即将到来

微信小程序开发入门介绍-布局组件

Any to Any 实时变声的实现与落地丨RTC Dev Meetup

In 2022, the number of mobile banking users in Q1 will reach 650million, and ESG personal financial product innovation will be strengthened

RichardSutton:经验是AI的终极数据,四个阶段通向真正AI的发展之路

ESP8266/ESP32 通過TimeLib庫獲取NTP時間方法
随机推荐
Selection (037) - what is the output of the following code?
数据分析必备:6大步骤+5大类型+2大分析方法
The key points of the article get to solid principle
微信小程序-image加载图片工具中显示,真机中不显示
Serious illness insurance covers serious illness. Which product is the best in the market? Please recommend it
Baota, a well-known server operation and maintenance software manufacturer, joined dragon lizard community and completed compatibility and adaptation with Anolis OS
KindEditor上传图片及使用
Web3 security series 𞓜 attack types and lessons learned
Google Earth Engine(GEE)——用sentinel-2数据获取获取一个月前归一化植被指数NDVI差异(危地马拉为例)
What are the differences between SVN and VSS
Cisco(35)——BGP入门实验
2022年Q1手机银行用户规模达6.5亿,加强ESG个人金融产品创新
[live broadcast preview] at 19:00 on June 24, hcsd live broadcast -- employment guide, which will take you through the interview points for the upcoming autumn recruitment and summer internship~~
最近学习的一些思考,附上答案,后续还需深入学习开发知识。
Uniswap去中心化交易所系統開發方案
关于印发《北京市共有产权住房管理暂行办法》的通知
鲁班会开发者深度论坛丨与成都伙伴一起 “洞见物联网新风潮”
Introduction to mqtt protocol
addslashes,stripslashes
Encryption market "escape": clearing, selling and running