20

MeterSphere开发者手册

 3 years ago
source link: https://segmentfault.com/a/1190000037749858
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

什么是 MeterSphere

MeterSphere 是一站式的开源企业级持续测试平台, 涵盖测试跟踪、接口测试、性能测试、 团队协作等功能,兼容 JMeter 等开源标准,有效助力开发和测试团队充分利用云弹性进行高度可扩展的自动化测试,加速高质量的软件交付,推动中国测试行业整体效率的提升。

uEzaYfN.png!mobile

下载安装

  1. 第一步:准备一台主机

准备一台不小于 8 G内存且可以访问互联网的 64位 Linux 主机。

  1. 第二步:执行一键安装命令

以 root 用户执行如下命令一键安装 MeterSphere:

curl -sSL https://github.com/metersphere/metersphere/releases/latest/download/quick_start.sh | sh

功能架构图

jmQ7z2j.jpg!mobile

开发者手册

官方开发文档

https://metersphere.io/docs/dev_manual/

补充开发者手册

一、全面了解metersphere

需要本地安装的组件有:

  • Idea
  • JDK
  • Node.js
  • Mysql
  • Docker
  • Kafka
  1. 主系统:包含项目前端和后端
后端框架: Spring Boot
前端框架: Vue.js
代码地址:https://github.com/metersphere/metersphere
本地开发需安装:JDK、Node.js、Idea
  1. 性能测试资源节点服务:通过Docker启动Jmeter容器,构建主机为性能测试资源节点,jmeter的测试日志和测试结果会写入kafka
后端框架: Spring Boot
代码地址:https://github.com/metersphere/node-controller
本地开发需安装:JDK、Docker、Kafka
  1. 数据消费和性能结果生成服务:消费kafka信息,保存性能测试结果数据
后端框架: Spring Boot
代码地址:https://github.com/metersphere/data-streaming
本地开发需安装:JDK、Kafka
  1. 还有一些其他的组件,多已上传到各类仓库,如果需要二次改造,可以查阅
https://github.com/metersphere

二、本地开发配置文件修改

  1. 三个项目的Application.java文件
@PropertySource(value = {"file:/自己的目录/metersphere.properties"}, encoding = "UTF-8", ignoreResourceNotFound = true)
  1. metersphere的日志文件logback.xml
<property file="/自己的目录/metersphere.properties"/>
  1. metersphere的配置文件application.properties
logging.file.path=/自己的目录/${spring.application.name}

三、代码结构

在官方开发文档中有介绍

四、启动

YrYzyqR.png!mobile

  1. 启动node-controller和data-streaming

M7zY3uv.png!mobile

扫一扫,关注我

fyIz2a.jpg!mobile


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK