Skip to the content.

MiGoo(米果)

License Maven Central Author Release

migoo 是一个Java语言开发的测试框架,适用于HTTP(S)、Dubbo、JDBC、Redis等协议或工具的测试。

核心特性

1.测试用例与代码分离,采用JSON描述测试场景,保障测试用例描述的统一性和可维护性;

2.丰富的测试组件,轻松实现动态参数及复杂业务;

3.丰富的校验机制,灵活配置校验规则;

4.极强的可扩展性,满足个性化扩展需求;

5.简洁美观的测试报告;

目录

使用

(Back to top)

方式一:创建Java项目,在pom.xml中引用

<!-- https://mvnrepository.com/artifact/xyz.migoo/migoo -->
<dependency>
    <groupId>xyz.migoo</groupId>
    <artifactId>migoo</artifactId>
    <version>${version}</version>
</dependency>

在Main方法中调用 MiGoo

public static void main(String[] args) {
    Result result = MiGoo.start("classpath:example/demo.yaml");
}

方式二:使用命令行方式( 点击下载

mac、linux下可运行 migoo.sh

windows下可运行 migoo.bat

options:
        -f: 测试用例文件路径,如:/user/migoo/testcase.yaml
        -r: 测试报告保存路径,如:/user/migoo/report
        -h2m: har文件路径,将指定的har文件转换为标准Http取样器文件
        -p2m: postman文件路径,将指定的postman文件(v2.1)转换为标准Http取样器文件
        -h: 帮助信息
        
        example: ./migoo.sh -f ./example/example_project.yaml -r ./report

示例

(Back to top)

见src/test/java/example/xyz/migoo

开发

(Back to top)

sampler开发:请参考 protocol.xyz.migoo包

function开发:请参考 function.xyz.migoo包

断言\提取器等组件开发:请参考 components.xyz.migoo包

鸣谢

(Back to top)

JetBrains IDEA

License

(Back to top)

License

The MIT License (MIT)

Copyright (c) 2018. Lorem XiaoMiSum (mi_xiao@qq.com)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ‘Software’), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.