当前位置:网站首页>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 .
边栏推荐
- 20-40K| 梅卡曼德3D视觉算法/软件/产品经理招聘
- Hj37 statistics of the total number of rabbits per month Fibonacci series
- Personal blog system (with source code)
- Cvpr2021 | multi view stereo matching based on self supervised learning (cvpr2021)
- Simulation volume leetcode [normal] 081. Search rotation sort array II
- MySQL 有这一篇就够(呕心狂敲37k字,只为博君一点赞!!!)
- Excel file reading and writing (creation and parsing)
- 图像加噪声与矩阵求逆
- Win11 system error: code execution cannot continue because ierutil.dll cannot be found. Reinstalling the program may fix this problem
- Flink real-time warehouse DWD layer (processing complex data - installation and replacement of streams and tables) template code
猜你喜欢

After three years of outsourcing, the salary of automatic testing after job hopping is twice that of the original. The secret is

dba

Use vscode to configure Mysql to realize connection, query, and other functions

vim文本编辑器的一些使用小技巧

Implementation of book borrowing management system based on C language

【charles日常问题】开启charles,使用不了钉钉

Student status management system based on C language design

buck电路boot和ph引脚实测

Vite3.0都发布了,你还能卷得动吗(新特性一览)

Image noise and matrix inversion
随机推荐
Revolution of game assets
ECCV 2022 lightweight model frame Parc net press apple mobilevit code and paper Download
Vite3.0 has been released, can you still roll it (list of new features)
HJ37 统计每个月兔子的总数 斐波那契数列
[CF1054H] Epic Convolution——数论,卷积,任意模数NTT
上采样之反卷积操作
Summary of OCR optical character recognition methods
基于C语言设计的学籍管理系统
[C language brush leetcode] 2332. The latest time to get on the bus (m)
[C language brush leetcode] 67. binary sum (E)
Fillder use
fillder使用
Summary of 2022 SQL classic interview questions (with analysis)
buck电路boot和ph引脚实测
2D cartoon rendering - advanced skills
最新百亿量化私募名单
Is online legend software testing training really so black hearted? Are they all scams?
Flink实时仓库-DWD层(交易域-加购维度退化处理)模板代码
Image noise and matrix inversion
Unity exploration plot access design analysis & process + code specific implementation