# testnewbie-automation **Repository Path**: testnewbie-projects/testnewbie-automation ## Basic Information - **Project Name**: testnewbie-automation - **Description**: 自动化测试脚手架. - **Primary Language**: Java - **License**: EPL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2021-03-08 - **Last Updated**: 2024-05-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # testnewbie-automation `TestNewbie-automation`是一个基于`Junit5`、`allure`的,开源的自动化测试脚手架。 ## 介绍 `TestNewbie-automation`是一个基于`Junit5`、`allure`的,开源的自动化测试脚手架。 依赖`Junit5`的扩展体系,`TestNewbie-automation`封装了一些实用的功能... ## 包含组件 - automation-interface 接口自动化测试模块,接口自动化测试脚本请添加该依赖 - automation-ui UI自动化测试模块,UI自动化测试脚本请添加该依赖 - automation-core 核心的 或者 公共的代码 - automation-dingding 用例执行完成,发送钉钉通知 - automation-email 用例执行完成,发送邮件通知 #### 其他 - automation-agent 开发`Test Newbie`过程中,方便查看方法耗时使用,不用关注 #### demo脚本 - example 接口自动化测试脚本、普通工具类测试脚本 - example-ui UI自动化测试脚本,整理中 ## 快速开始 #### 环境要求: 本地安装: java环境,建议java8(java8以下的不支持,8以上的未测试) 本地安装: allure 命令(百度“allure安装”,或者访问allure官网 http://allure.qatools.ru/ ) #### 执行demo脚本: 下载代码到本地 ```sh git clone https://gitee.com/testnewbie-projects/testnewbie-automation.git ``` 将下面`example`目录导入IDEA(或者其他编程工具),打开Terminal,执行 ```sh start.bat ## 需要安装allure ``` 脚本会自动打开浏览器,显示报告 其他方法查看报告: - 使用IDEA:找到`example`根目录下生成的`allure-report`文件夹,打开`index.html`,点击编辑框右上角的浏览器按钮 ## 使用说明 automation-dingding [用例执行完成,发送钉钉通知](https://gitee.com/testnewbie-projects/testnewbie-automation/blob/master/automation-email/README.md) automation-email [用例执行完成,发送邮件通知](https://gitee.com/testnewbie-projects/testnewbie-automation/blob/master/automation-dingding/README.md) ## 已知问题 ## 已知问题&开发中的功能(TODO) 1. Csv文件转Bean 2. 钉钉文本不能自定义 3. Csv转Bean需要添加更多用例 4. 钉钉发送群通知,暂不支持secret(加签) ## 关联开源项目 [JUnit 5](https://junit.org/junit5/): The de-facto standard for unit testing Java applications. [hutool](https://www.hutool.cn/docs/#/): 一个小而全的Java工具类库,通过静态方法封装,降低相关API的学习成本,提高工作效率,使Java拥有函数式语言般的优雅 [AssertJ](https://assertj.github.io/doc/): A fluent assertion library. [Hamcrest](https://github.com/hamcrest/JavaHamcrest): A library of matcher objects (also known as constraints or predicates). [JSONassert](https://github.com/skyscreamer/JSONassert): An assertion library for JSON. [JsonPath](https://github.com/jayway/JsonPath): XPath for JSON. #### 参与贡献(暂时还没理清楚gitee的流程~~) 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request