# AutotestPlatform **Repository Path**: jam_ox/AutotestPlatform ## Basic Information - **Project Name**: AutotestPlatform - **Description**: 自动化测试平台 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-12-26 - **Last Updated**: 2021-12-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # AutotestPlatform(自动化测试平台) ### 概述: ####        1、接口自动化测试模块:           单接口录入/测试,多个接口组织场景,多个场景组成测试套,选择测试套进行任务执行和报告生成。 ####        2、web界面自动化测试模块:           通过selenium提供的api,以web页面元素的xpath来唯一定位每个对象,然后操作对象(点击,输入,移动,获取信息,校验,截屏等),来实现web界面测试自动化。为了应对前端界面的频繁变动,尽可能的减少用例的频繁修改,抽象出【页面-模板-数据】三层,动态组织用例。                 ### 使用指南:

docker pull qiangzhou/autotest_platform:v1.0
docker run -dit --name autotest_platform --net host qiangzhou/autotest_platform:v1.0 bash -c "cd /opt/AutotestPlatform/web/ && uwsgi -i uwsgi.ini"

# 浏览器访问http://ip:8080
# 登陆密码admin/123
### 示例: #### 接口自动化测试模块 1、单个接口录入 ![](https://github.com/qiangzhouf/AutotestPlatform/raw/master/doc/1.png) ![](https://github.com/qiangzhouf/AutotestPlatform/raw/master/doc/6.png) ![](https://github.com/qiangzhouf/AutotestPlatform/raw/master/doc/7.png) 2、多个接口组织场景 ![](https://github.com/qiangzhouf/AutotestPlatform/raw/master/doc/2.png) 3、新建测试套,并添加场景 ![](https://github.com/qiangzhouf/AutotestPlatform/raw/master/doc/3.png) 4、建立任务并执行 ![](https://github.com/qiangzhouf/AutotestPlatform/raw/master/doc/4.png) 5、查看结果 ![](https://github.com/qiangzhouf/AutotestPlatform/raw/master/doc/5.png) #### web界面自动化测试模块 1、添加页面抽象 ![](https://github.com/qiangzhouf/AutotestPlatform/raw/master/doc/11.png) 2、编写用例模板 ![](https://github.com/qiangzhouf/AutotestPlatform/raw/master/doc/12.png) 3、组织用例集 ![](https://github.com/qiangzhouf/AutotestPlatform/raw/master/doc/13.png) 4、建立任务并执行 ![](https://github.com/qiangzhouf/AutotestPlatform/raw/master/doc/14.png) 5、查看结果 ![](https://github.com/qiangzhouf/AutotestPlatform/raw/master/doc/15.png)