APIAuto 2.0.0 release, machine learning, automated testing, automatic code generation and annotation, automatic static checking ...

update content

1. The new machine learning test;

2. New and enhanced a variety of other functions;

3. compatible with multiple databases.

See details Releases

APIAuto

Machine learning test, automatic code generation, automatic static checking, automatic generation of documents and notes, etc., to do the most advanced interface management tool.
Submit API JSON support HTTP POST parameters. For APIJSON do a static checking, code generation, formatting, etc. a lot of optimization.

Features Functions

  • Automatic generation of interface documentation, legible never latest
  • Formatting and automatic calibration, development and income support highlighting
  • Automatically generate code for a variety of languages, a download key
  • Automatic management of the interface with the test cases, a shared key
  • Request to automatically annotate JSON, a key switch
  • Automatic preservation of historical records request, a key recovery

Automated interface testing

https://gitee.com/TommyLemon/APIAuto/blob/master/apijson/JSONResponse.js

Before and after comparison test compareWithBefore

Without writing any code , just point at the icon button backtesting tests (left upper right corner of the area, similar to the refresh icon),
it will automatically test all test cases (except the login and logout login), and compare the before and after each test case two the results of the request times,
and conclusions are given: the result is correct, the new field, the lack field value is changed, the value of the type of change, and changes the status code.
Measured after each test case, there will be a request for displaying the left button results before and after switching and the test results,
the right button for error correction, the intermediate is a request for downloading the download button twice, the background color for marking Interface changes severity.
If this result is correct, you can click [right, correction] button to upload the new right as a result of subsequent comparison standard.

Machine Learning test compareWithStandard, updateStandard

 

在 前后对比测试 的基础上,通过 简单统计 + 场景优化提取返回结果 Response JSON 的校验模型
包括每一层的所有键值对的名称、类型、长度、取值范围等,它还能精准定位到数组内的数据,
例如 []/7/Comment/id,原来的 前后对比测试 只能到 []。
在第一次会生成校验模型,这时就已经比前后对比测试有约 20% 的准确度提升,
随着纠错次数增加,模型会更新地越来越精准,一般一个测试用例达到 12 次后,
就会相当于高级测试工程师对每个接口根据具体的业务需求来编写测试代码所能达到的效果。

开启和使用机器测试:
1.点击右区域 第 3 个图标按钮(点击查看共享),会进入测试用例界面;
2.点击 切换机器学习的按钮(机器学习:已关闭),会开启机器学习;
3.点击左区域 最右侧的图标按钮(回归测试)。

打开 在线工具 试试

http://apijson.org:8000/auto/

还可以看 视频演示 

https://i.youku.com/i/UNTg1NzI1MjQ4MA==/videos?spm=a2hzp.8244740.0.0

总结

以前编写测试代码来实现自动化测试,解决手动测试的繁琐、无聊、易出错;

APIAuto 的自动化接口回归测试连代码都不用写了,点点按钮就能完成整个自动化测试过程。

不仅能节约大量的测试代码开发成本,省去接口测试与接口开发人员的沟通时间,避免各种原来导致的误会、争吵等;

还能通过每次改动代码后跑一遍测试,及时且提前(在同事、领导、用户发现前)发现 bug,

减少后续发现甚至在线上发生问题导致大量损失的风险。

https://gitee.com/TommyLemon/APIAuto

Guess you like

Origin www.oschina.net/news/111449/apijson-apiauto-2-0-0-released