当前位置:网站首页>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 :
ApifoxInterface documentation followsOpenApi 3.0 ( primary Swagger)、JSON SchemaAt 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
JSONandXMLPattern ) You can directly reference . Support model direct nested reference , directJSON/XMLSmart import , SupportoneOf、allOfAnd other advanced combination modes . - Interface debugging :
PostmanSome functions , For example, environment variables 、 In front of / Post script 、Cookie/SessionGlobal Shared And so on ,ApifoxThere are , And ratioPostmanMore 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% compatiblePostmangrammar , 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.jsRules engine , Very convenientmockAll kinds of data , And you can define the data structure and writemockThe rules . Support adding “ expect ”, According to the request parameters, differentmockdata . most important of allApifoxZero configuration that will doMockVery 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 :
JMeterSome functions are basically , And use it better . - Quick request : similar
PostmanInterface 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 :
ApifoxBorn 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/SwaggerFormat contains only Interface 、 Data model 、 Environmental Science ; - Import
PostmanThe format only contains interfaces ;

Four 、 Manual import - Advanced settings
1、 Interface coverage mode
- Same as
URLCover : When two filesURL、methodPhase at the same time , The new file will overwrite the old file - Same as
URLAnd the same group can cover : When two filesURL、methodPhase at the same time , And under the same group , The new file will overwrite the old file - Same as
URLDo not import : When two filesURL、methodPhase at the same time , New files will not be imported - Same as
URLKeep both : When two filesURL、methodPhase 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
ApifoxFormat 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
ApifoxFormat 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
边栏推荐
猜你喜欢

ggplot 分面的细节调整汇总

Class constant pool and runtime constant pool

Operational amplifier application summary 1

Some thoughts on cross end development of kbone and applet
![[development software] tilipa Developer Software](/img/b8/de2a1ea6474bb3f9b44e7ea01c441b.png)
[development software] tilipa Developer Software

Preprocessing - interpolation

opencv第三方库
10 ways of interface data security assurance

Kotlin Android 环境搭建

Gpt-3 is a peer review online when it has been submitted for its own research
随机推荐
Implementation steps of docker deploying mysql8
Redis source code learning (31), dictionary learning, dict.c (1)
golang 压缩和解压zip文件
The first introduction of the most complete mongodb in history
史上最全MongoDB之部署篇
QT item table new column name setting requirement exercise (find the number and maximum value of the array disappear)
Unity3d can change colors and display samples in a building GL material
tflite模型转换和量化
使用切面实现记录操作日志
Kotlin Android 环境搭建
[hcie TAC] question 3
vim —- 自己主动的按钮indent该命令「建议收藏」
5年自动化测试,终于进字节跳动了,年薪30w其实也并非触不可及
How to detect whether the MySQL code runs deadlock +binlog view
数据的存储
Imitate Tengu eating the moon with Avatar
Kbone与小程序跨端开发的一些思考
HW notes (II)
Leetcode: interview question 17.24 Maximum cumulative sum of submatrix (to be studied)
Redis source code learning (30), dictionary learning, dict.h