当前位置:网站首页>Interface test actual project 03: execute test cases
Interface test actual project 03: execute test cases
2022-07-29 07:14:00 【Program yuanyuexia】

This time, , We began to test the interface according to the test cases .
Before the test , Let me start with a little :
This set of project provides a complete test case , But if you want to master interface testing skills , I suggest you read the interface document first , Then write a test case by yourself , Then compare with standard use cases , Leak filling ,100% It's good for you
The test case

Open the test case . The use case has four major scenarios ( Inquire about 、 newly added 、 to update 、 Delete ), common 57 Use cases ( Query college information 28 individual , Add college information 15 individual , Update college information 11 individual , Delete college information 3 individual ).
In the actual interface test , When you finish writing test cases, you need to execute them one by one , Ensure that each use case passes , If it doesn't go through , Then you will find one bug.
We won't talk about every use case here , Because simple interface testing is really not very difficult , Whenever you can use a computer , Can follow the gourd and draw gourds .
See Postman Screenshot ( We usually use Postman Do interface tests ):
GET request ( Query college information )

POST request ( Add college information )

PUT request ( Update college information )

DELETE request ( Delete college information )

reflection
In practice , Do you have such trouble :
01 Some use cases , Very annoying operation

For example, these three ,
In the first use case , You need to create a new one T01、T02 college ;
In the second use case , You need to delete one of the Colleges before you can request ;
In the following third use case , You need to delete two more colleges before you can request .
Think about how to solve ?
When you are familiar with the business , Your use case can actually be changed to :
First step , verification T01,T02 Two empty scenes ;
The second step , newly added T01, verification T01 There is ,T02 A scene that doesn't exist ;
The third step , newly added T02, Verify that both scenarios exist .
In the end , Your data , yes T01 and T02 All in , You can use the existing data to verify other scenarios , For example, update and delete , Instead of passively following the use case as before , Did a lot of repetitive work .
02 Repeat the test
After a hard test , Development suddenly tells you : I changed the code a little , You need to retest .
For the first time, you may accept , But after more times , you 100% Will be upset , I think the test work is very boring , meaningless .
Think about how to solve ?
automated testing .
This is the original intention of automated testing —— Reduce repetitive work ( Worth reducing ), Improve work efficiency ( Reduce energy input ).
therefore : Think while working , To keep you improving .
above , success ! If you need a full set of projects, you can contact me , In case of problems , You can leave a comment below .
边栏推荐
猜你喜欢

使用VsCode配置MySQL实现连接、查询、等功能

数组的子集不能累加出的最小正数

Flink real-time warehouse DWD layer (transaction domain - additional purchase dimension degradation processing) template code

buck电路boot和ph引脚实测

基于C语言实现图书借阅管理系统

Spark Learning Notes (VII) -- spark core core programming - RDD serialization / dependency / persistence / partition / accumulator / broadcast variables

Personal blog system (with source code)

Flink实时仓库-DWD层(流量域)模板代码

H3C_利用设置缺省静态路由优先级实现出口双线路的主备功能

要不要满足客户所有的需求
随机推荐
MySQL 高级(进阶) SQL 语句 (一)
SSH password free login - two virtual machines establish password free channel two-way trust
Flink实时仓库-DWD层(处理复杂数据-流和表的装换处理)模板代码
最新百亿量化私募名单
Flink实时仓库-DWD层(交易域-加购维度退化处理)模板代码
Thread - thread safety - thread optimization
mysql可以定时导出表格吗?
【C语言刷LeetCode】1054. 距离相等的条形码(M)
gin 路由,参数,输出
Record - step on the pit - real-time data warehouse development - doris/pg/flink
gin 服务退出
以太网接口介绍
OCR光学字符识别方法汇总
Some tips of vim text editor
Unity sends a post request to the golang server for parsing and returning
Dbasql interview questions
做开发4年13K,想转行自动化测试,薪资还能涨吗···
dba
MVFuseNet:Improving End-to-End Object Detection and Motion Forecasting through Multi-View Fusion of
我的个人网站不让接入微信登录,于是我做了这个