当前位置:网站首页>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
边栏推荐
猜你喜欢
Optimization cases of complex factor calculation: deep imbalance, buying and selling pressure index, volatility calculation
Codeworks 5 questions per day (1700 average) - day 7
Imitate Tengu eating the moon with Avatar
tflite模型转换和量化
史上最全MongoDB之部署篇
The most complete deployment of mongodb in history
【mysql】mysql中行排序
链表面试常见题
再AD 的 界面顶部(菜单栏)创建常用的快捷图标
Food Chem|深度学习根据成分声明准确预测食品类别和营养成分
随机推荐
PHP implements lottery according to probability
map和set的实现
Redis source code learning (31), dictionary learning, dict.c (1)
力扣------路径总和 III
CUDA Programming
Learn how to use js to merge two objects into one object assign()
机器人(自动化)课程的持续学习-2022-
Native MySQL
1.19.11.SQL客户端、启动SQL客户端、执行SQL查询、环境配置文件、重启策略、自定义函数(User-defined Functions)、构造函数参数
VIM - own active button indent this command "suggestions collection"
Class常量池与运行时常量池
Some thoughts on cross end development of kbone and applet
The first introduction of the most complete mongodb in history
List interview common questions
Top 50 hit industry in the first half of 2022
Arduino droplet detection
接口数据安全保证的10种方式
Mysql-数据丢失,分析binlog日志文件
Construction of Hisilicon universal platform: color space conversion YUV2RGB
How to detect whether the MySQL code runs deadlock +binlog view