# atp **Repository Path**: sharath-boyapally/atp ## Basic Information - **Project Name**: atp - **Description**: App测试框架 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 16 - **Created**: 2020-12-07 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ATP-BE [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) ![Jenkins](https://img.shields.io/jenkins/build?jobUrl=http%3A%2F%2Fjenkins.edgegallery.org%2Fview%2FMEC-PLATFORM-BUILD%2Fjob%2Fappstore-backend-docker-image-build-update-daily-master%2F) 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](https://www.oracle.com/java/technologies/javase-jdk8-downloads.html) | MavApache Maven |3.6.3 | [download](https://maven.apache.org/download.cgi) | IntelliJ IDEA |Community |[download](https://www.jetbrains.com/idea/download/) | Servicecomb Service-Center | 1.3.0 | [download](https://servicecomb.apache.org/cn/release/service-center-downloads/) | Postgres | 9.6.17 or above | [download](https://www.enterprisedb.com/downloads/postgres-postgresql-downloads) | - ### 修改配置文件/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 可以查看服务是否注册成功。