当前位置:网站首页>Explore dry goods! Apifox construction ideas
Explore dry goods! Apifox construction ideas
2022-07-07 07:59:00 【Wu_ Candy】
Apifox What is it?
Apifox yes API file 、API debugging 、API Mock、API Automated testing integrated collaboration platform , location Postman + Swagger + Mock + JMeter.
Apifox Where to use
Apifox Used in the whole team collaboration , Everyone has a document , Cooperative Office .
Why use Apifox
Apifox Advantages as follows :
A system 、 A piece of data , Solve the problem of data synchronization between multiple systems ;
Just define API file ,API debugging 、API data Mock、API Automated testing can be used directly , There is no need to redefine ;
API Documentation and API Development and debugging use the same tool ,API After the commissioning, it can be guaranteed and API The document definition is exactly the same ;
Efficient 、 In time 、 accuracy .
How to implement
Today's sharing is java Project integration is an example to demonstrate .
1. How to deploy ?
At present, there are two ways to deploy :
be based on B/S Structural WEB edition
be based on C/S Desktop version of structure
The two can work together , As shown in the figure below .
The desktop version :

WEB edition :

2. How to coordinate ?
project 、 The permission management of team members is shown in the following figure :

The back-end classmates :
Step1: Introduced in the project swagger package
Introduce... Into the project swagger After package , In the code, comment api Describe the content , As detailed and real-time synchronous updates as possible api Changes .
ask : stay apifox How to import in the platform api Information
answer :
1. Sign in Apifox platform
2. Directory path : Project settings
3. The interface of importing data is as follows

Step2: Apifox The platform checks the interface data imported above
As shown in the figure below :

Step3:【 Interface management 】 Next , Select an interface for debugging and self-test interface

Step4:【 Interface management 】 Next , After selecting an interface to run , Perform save

Step5: Extract the variables in the response result , Used for the next interface

Step6: Automatic generation 【 Business code 】 and 【 Interface request code 】

Front end students :
matters needing attention : Request the environment to switch to Mock Under service .
Step1: Add a custom interface

Step2: Debug custom interface

Step3: Interface data Mock

Test students :
Step1: Test students can be in Apifox Test the interface on the platform , Just do some simple configuration .
1. Configure interface parameters and header Information

2. Add assertions

3. Send request and check response
Click on 【 send out 】 Button

Step2: Test students write interface use cases for the interface and save

Step3: Test students can associate the interface use cases added in the previous step to a use case group , Then it can be executed together and the test report can be issued
As shown below :


Step4: Test suite function can make test cases into a set , Each test suite contains multiple test cases

Step5: Simple pressure measurement operation is realized

summary
1. Apifox It can well meet our internal use .
2. Apifox It is the cloud management interface , There will be certain security risks , If you want to privatize , You need to pay for .
Welcome to your attention 【 The way of immeasurable testing 】 official account , reply 【 Claim resources 】
Python+Unittest frame API automation 、
Python+Unittest frame API automation 、
Python+Pytest frame API automation 、
Python+Pandas+Pyecharts Big data analysis 、
Python+Selenium frame Web Of UI automation 、
Python+Appium frame APP Of UI automation 、
Python Programming learning resources dry goods 、
Vue Front end component framework development 、
Resources and code Free ~
Below the official account is two-dimensional code. , You can directly scan wechat and pay attention .
remarks : My official account has been officially opened. , betake IT Sharing of Internet technology .
contain : Data analysis 、 big data 、 machine learning 、 Test Development 、API Interface automation 、 Test operation and maintenance 、UI automation 、 Performance testing 、 code detection 、 Programming technology, etc .
WeChat search official account :“ The way of immeasurable testing ”, Or scan the qr code below :

Add the attention , Let's grow together !
边栏推荐
- Pytorch parameter initialization
- Chip information website Yite Chuangxin
- Live broadcast platform source code, foldable menu bar
- Live online system source code, using valueanimator to achieve view zoom in and out animation effect
- pytest+allure+jenkins安装问题:pytest: error: unrecognized arguments: --alluredir
- Cnopendata American Golden Globe Award winning data
- [2022 ciscn] replay of preliminary web topics
- Few-Shot Learning && Meta Learning:小样本学习原理和Siamese网络结构(一)
- Leanote private cloud note building
- 【斯坦福计网CS144项目】Lab4: TCPConnection
猜你喜欢

Sign up now | oar hacker marathon phase III, waiting for your challenge

Introduction to basic components of wechat applet
![[SUCTF 2019]Game](/img/9c/362117a4bf3a1435ececa288112dfc.png)
[SUCTF 2019]Game

2022焊工(初级)判断题及在线模拟考试

@component(““)

Force buckle 145 Binary Tree Postorder Traversal
![[Matlab] Simulink 自定义函数中的矩阵乘法工作不正常时可以使用模块库中的矩阵乘法模块代替](/img/e3/cceede6babae3c8a24336c81d98aa7.jpg)
[Matlab] Simulink 自定义函数中的矩阵乘法工作不正常时可以使用模块库中的矩阵乘法模块代替

buuctf misc USB

Thinkcmf6.0 installation tutorial

探索Cassandra的去中心化分布式架构
随机推荐
3D reconstruction - stereo correction
Thinkcmf6.0安装教程
[P2P] local packet capturing
Thinkcmf6.0 installation tutorial
这5个摸鱼神器太火了!程序员:知道了快删!
Value sequence (subsequence contribution problem)
[mathematical notes] radian
Linux server development, SQL statements, indexes, views, stored procedures, triggers
【斯坦福计网CS144项目】Lab3: TCPSender
【p2p】本地抓包
Installing postgresql11 database under centos7
A bit of knowledge - about Apple Certified MFI
Detailed explanation of uboot image generation process of Hisilicon chip (hi3516dv300)
Route jump in wechat applet
Idea add class annotation template and method template
The configuration that needs to be modified when switching between high and low versions of MySQL 5-8 (take aicode as an example here)
Rust Versus Go(哪种是我的首选语言?)
pytest+allure+jenkins环境--填坑完毕
Pytest + allure + Jenkins Environment - - achèvement du remplissage de la fosse
C语言航班订票系统