У меня есть пара файлов jmx, которые я записал и скачал с помощью плагина Blazemeter.
Я хотел бы знать
Любая помощь будет высоко оценена.
Когда вы добавляете проект CircleCI, у вас есть выбор из нескольких языков:
Я бы порекомендовал пойтидля Maven(Java) как JMeter Maven Plugin - это самый простой вариант настройки и использования из других JMeter не-GUI вариантов исполнения .
Maven(Java)
Организовать структуру вашего проекта следующим образом:
Убедитесь, что файл config.yml выглядитследующим образом:
config.yml
# Java Maven CircleCI 2.0 configuration file # # Check https://circleci.com/docs/2.0/language-java/ for more details # version: 2 jobs: build: docker: # specify the version you desire here - image: circleci/openjdk:8-jdk # Specify service dependencies here if necessary # CircleCI maintains a library of pre-built images # documented at https://circleci.com/docs/2.0/circleci-images/ # - image: circleci/postgres:9.4 working_directory: ~/repo environment: # Customize the JVM maximum heap limit MAVEN_OPTS: -Xmx3200m steps: - checkout # Download and cache dependencies - restore_cache: keys: - v1-dependencies-{{ checksum "pom.xml" }} # fallback to using the latest cache if no exact match is found - v1-dependencies- - run: mvn dependency:go-offline - save_cache: paths: - ~/.m2 key: v1-dependencies-{{ checksum "pom.xml" }} # run tests! - run: mvn verify - store_artifacts: path: target/jmeter/reports
Убедитесь, что ваш pom.xml выглядит следующим образом:
pom.xml
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>org.jmeter</groupId> <artifactId>maven</artifactId> <version>1.0-SNAPSHOT</version> <build> <plugins> <plugin> <groupId>com.lazerycode.jmeter</groupId> <artifactId>jmeter-maven-plugin</artifactId> <version>2.8.0</version> <executions> <!-- Run JMeter tests --> <execution> <id>jmeter-tests</id> <goals> <goal>jmeter</goal> </goals> </execution> <!-- Fail build on errors in test --> <execution> <id>jmeter-check-results</id> <goals> <goal>results</goal> </goals> <configuration> <generateReports>true</generateReports> </configuration> </execution> </executions> </plugin> </plugins> </build> </project>
Вы сможетечтобы увидеть панель отчетов HTML в артефактах сборки
Планирование ваших сборок также возможно через cron -подобные выражения