ATP-BE
ATP (Application test platform)是应用测试认证的平台,通过构建统一的测试标准并搭建测试框架,为开发者平台与APPStore提供一致的APP测试体验
特性介绍
上传、管理App
编译运行
atp-be对外提供restful接口,基于开源的ServiceComb微服务框架进行开发,并且集成了Spring Boot框架。本地运行需要依赖ServiceCenter进行服务注册发现,通过postman进行接口测试。
-
环境准备(本地运行)
Name Version Link JDK1.8 1.8xxx or above download MavApache Maven 3.6.3 download IntelliJ IDEA Community download Servicecomb Service-Center 1.3.0 download Postgres 9.6.17 or above download -
修改配置文件/src/main/resources/application.properties
- 1 修改postgres配置,本地安装默认IP是127.0.0.1,默认端口是5432,默认用户名和密码postgres/root,如下:
postgres.ip=127.0.0.1 postgres.database=postgres postgres.port=5432 postgres.username=postgres postgres.password=root
- 2 配置Service Center,本地安装IP是127.0.0.1,默认端口30100,servicecomb.name是注册到servicecenter上的服务名,可修改,默认是mec-developer,配置如下:
#### Service Center config #### # ip or service name in k8s servicecenter.ip=127.0.0.1 servicecenter.port=30100 servicecomb.name=application-test-platform
-
编译打包
从代码仓库拉取代码,默认master分支
git clone https://github.com/EdgeGallery/atp.git
编译构建,需要依赖JDK1.8,首次编译会比较耗时,因为maven需要下载所有的依赖库。
mvn clean install
-
运行
cd到打包路径,通过java启动:
java -jar atp.jar
启动后通过浏览器访问 http://127.0.0.1/30103 可以查看服务是否注册成功。