当前位置:网站首页>Surpassing postman, the new generation of domestic debugging tool apifox is elegant enough to use
Surpassing postman, the new generation of domestic debugging tool apifox is elegant enough to use
2022-07-07 04:08:00 【nezha】
Catalog
One 、Apifox Introduce
Apifox yes API file 、API debugging 、API Mock、API Automated testing integrated collaboration platform , location Postman + Swagger + Mock + JMeter
. Through 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 !
1、Apifox location
Apifox = Postman + Swagger + Mock + JMeter
Apifox yes API file 、API debugging 、API Mock、API Automated testing integrated collaboration platform .
Through a system 、 A piece of data , Solve the problem of data synchronization between multiple systems . Just define the interface document , Interface debugging 、 data Mock、 Interface testing can be used directly , There is no need to redefine ; Interface documentation and interface development debugging use the same tool , After the interface debugging is completed, it can ensure that it is completely consistent with the interface document definition . Efficient 、 In time 、 accuracy !
2、Apifox function
- Interface design :
Apifox
Interface documentation followsOpenApi 3.0 ( primary Swagger)
、JSON Schema
At the same time , Provides a very easy to use visual document management function , Zero learning cost , Very efficient . And support online sharing of interface documents . - Data model : Reusable data structure , Define the interface return data structure and request parameter data structure ( only
JSON
andXML
Pattern ) You can directly reference . Support model direct nested reference , directJSON/XML
Smart import , SupportoneOf
、allOf
And other advanced combination modes . - Interface debugging :
Postman
Some functions , For example, environment variables 、 In front of / Post script 、Cookie/Session
Global Shared And so on ,Apifox
There are , And ratioPostman
More efficient and easy to use . After the interface runs, click the save as use case button , Interface use cases can be generated , Interface use cases can be run directly later , No more parameters need to be entered , Very convenient . Custom script 100% compatiblePostman
grammar , And support running javascript、java、python、php、js、BeanShell、go、shell、ruby、lua And other language codes . - Interface use cases : Usually, an interface has multiple use cases , For example, the parameters are correct, and the use case 、 Parameter error use case 、 Data is empty use case 、 Different data state use cases, etc . The correctness of data will be automatically verified when running the interface case , Using interface use cases to debug interfaces is very efficient .
- Interface data
Mock
: built-inMock.js
Rules engine , Very convenientmock
All kinds of data , And you can define the data structure and writemock
The rules . Support adding “ expect ”, According to the request parameters, differentmock
data . most important of allApifox
Zero configuration that will doMock
Very human data , The details are introduced later in this paper . - Database operation : Support reading database data , Used as an interface request parameter . Support reading database data , Used to verify ( Assertion ) Whether the interface request is successful .
- Interface automation testing : Provide interface set testing , You can choose the interface ( Or interface use cases ) Quickly create test sets . At present, more functions of interface automation test are still under development , Coming soon ! The goal is :
JMeter
Some functions are basically , And use it better . - Quick request : similar
Postman
Interface debugging mode , The main purpose is to temporarily debug some interfaces that do not need to be documented , You can quickly debug without defining the interface in advance . - Code generation : Define according to the interface and data model , The system automatically generates the interface request code 、 Front end business code and back-end business code .
- Teamwork :
Apifox
Born for teamwork , Interface cloud real-time synchronous update , A mature team / project / Member rights management , Meet the needs of various enterprises .
Two 、Apifox It's not just about getting through the data
If you think Apifox We just got the data through , To improve the efficiency of the R & D team , It would be wrong .Apifox And a lot of innovation , To improve the efficiency of developers .
Support export OpenApi (Swagger)
、Markdown
、Html
And so on , Because you can export OpenApi
Format data , So you can use OpenApi (Swagger)
Rich ecological tools to complete a variety of interface related things .
Support import OpenApi(Swagger)
、Postman
、apiDoc
、HAR
、RAML
、RAP2
、YApi
、Eolinker
、NEI
、DOClever
、ApiPost
、Apizza
、ShowDoc
、API Blueprint
、I/O Docs
、WADL
、Google Discovery
And so on , Facilitate the migration of old projects .
Support timed automatic import OpenApi (Swagger)
、apiDoc
、Apifox
Format data .
Here is a detailed introduction Apifox
Data import .
3、 ... and 、 Manual import
open Project settings panel , Click on Manual import , You can choose file import or URL Import .
To import Apifox
Format as an example , Import options include : Interface 、 Data model 、 Environmental Science 、 The test case 、 test suite .
- Import
OpenAPI/Swagger
Format contains only Interface 、 Data model 、 Environmental Science ; - Import
Postman
The format only contains interfaces ;
Four 、 Manual import - Advanced settings
1、 Interface coverage mode
- Same as
URL
Cover : When two filesURL
、method
Phase at the same time , The new file will overwrite the old file - Same as
URL
And the same group can cover : When two filesURL
、method
Phase at the same time , And under the same group , The new file will overwrite the old file - Same as
URL
Do not import : When two filesURL
、method
Phase at the same time , New files will not be imported - Same as
URL
Keep both : When two filesURL
、method
Phase at the same time , The new file will be imported , Old files will not be deleted
2、 file (markdown file 、 Data model 、 The test case 、 Interface use cases ) Overlay mode
- Cover with the same name : When two file names are the same , The new file will overwrite the old file
- Only with the same name and group can it be overwritten : When the names of two files are the same , And under the same group , The new file will overwrite the old file
- Do not import with the same name : When two file names are the same , New files will not be imported
- Keep both when you have the same name : When two file names are the same , The new file will be imported , Old files will not be deleted
3、 Import to group
It supports importing files into specific groups .
4、 Import interface use cases
Turn on the switch , The interface use cases under the selected interface are all selected by default , You can also select the corresponding interface use case in the import preview .
- When importing non
Apifox
Format file , When the interface document is covered , With the same name Interface use cases Will not import , Different names of Interface use cases Will the new . - When importing
Apifox
Format file , When the interface document is covered , With the same name Interface use cases Will be covered , Different names of Interface use cases Will the new .
5、 ... and 、 Automatic import
Open the project settings panel , Click auto import , Multiple data sources can be set , Regularly synchronize to specific groups .
Only the role is administrator , And when you open the client , According to the set import frequency Automatic import , Other roles will not trigger automatic import .
6、 ... and 、 Import different data sources
1、 Import OpenAPI (Swagger) data
Support import OpenAPI 3、Swagger1、2、3 Data format json
or yaml
file .
2、 Import Postman data
Support Postman Collection v2.1
Format .
Data export method : find Postman
Left list Collections
, Move the mouse to the collection to be exported , Click on ···, choice Export
And then choose Collection v2.1 (recommended)
You can export , As shown in the figure below :
3、 Import ShowDoc Format data
Data export method : Click on ShowDoc
The expand button on the right side of the document , Find the Export button , Select after clicking markdown
Compressed package export .
Will be taken from ShowDoc
Derived Markdown
Compressed package decompression , You will see a file named prefix_info.json
Of json
file .
Import Apifox
When , choice ShowDoc
Format , Then import the extracted prefix_info.json
File can .
7、 ... and 、Apifox Download address
It introduces Apifox
So many practical functions , Using it is the real benefit !
The software is completely free , It can be called conscience , Interested and needy partners , You can go to the official website :www.apifox.cn Learn more
边栏推荐
- Learn how to use js to merge two objects into one object assign()
- golang 根据生日计算星座和属相
- golang 压缩和解压zip文件
- Analysis on urban transportation ideas of 2022 Zhongqing cup C
- opencv第三方库
- Redis configuration and optimization of NoSQL
- . Net interface can be implemented by default
- When QT uses qtooltip mouse to display text, the picture of the button will also be displayed and the prompt text style will be modified
- 史上最全学习率调整策略lr_scheduler
- 【mysql】mysql中行排序
猜你喜欢
史上最全MongoDB之部署篇
Opencv third party Library
ABAP 動態內錶分組循環
It's too convenient. You can complete the code release and approval by nailing it!
Imitate Tengu eating the moon with Avatar
Gpt-3 is a peer review online when it has been submitted for its own research
Class常量池与运行时常量池
Top 50 hit industry in the first half of 2022
Kbone与小程序跨端开发的一些思考
用头像模仿天狗食月
随机推荐
超越Postman,新一代国产调试工具Apifox,用起来够优雅
easyui出口excel无法下载框弹出的办法来解决
Class常量池与运行时常量池
杭州电 3711 Binary Number
Mysql-数据丢失,分析binlog日志文件
NoSQL之Redis配置与优化
一些常用软件相关
ABAP Dynamic Inner table Group cycle
如何编写一个程序猿另一个面试官眼前一亮的简历[通俗易懂]
UltraEdit-32 warm prompt: right association, cancel bak file [easy to understand]
2022年电工杯B 题 5G 网络环境下应急物资配送问题思路分析
Web service performance monitoring scheme
[hcie TAC] question 3
How to write a resume that shines in front of another interviewer [easy to understand]
Unity3d can change colors and display samples in a building GL material
使用 Dumpling 备份 TiDB 集群数据到 GCS
ERROR: Could not build wheels for pycocotools which use PEP 517 and cannot be installed directly
vim —- 自己主动的按钮indent该命令「建议收藏」
機器人(自動化)課程的持續學習-2022-
Construction of Hisilicon universal platform: color space conversion YUV2RGB