本文介绍了如何将加特林与詹金斯整合的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用加特林进行负载测试并将其与jenkins集成在一起.任何人都可以向我提供逐步执行此操作的方法.我对使用Maven和sbt知之甚少.

I want to use gatling for load testing integrating it with jenkins. Can anyone supply me the step by step methods for doing that. I have a very little knowledge of using maven and sbt.

推荐答案

我看到您已经找到了自己的方法,但是对于仍在寻找一些更详细教程的用户,它们将以简短的步骤进行回答.

I see that you already found the way yourself but will answer with short steps for those who are still looking for some more detailed tutorial.

要集成Gatling和Jenkins,您可能需要实现两件事.

To integrate Gatling and Jenkins you probably want to achieve 2 things.

首先,为了能够通过一行shell命令运行测试(只要您可以通过shell命令运行测试,就不需要其他任何东西来运行性能脚本).是的,你是对的.加特林maven插件非常适合这些需求.您所需要的只是通过此链接跟随示例: https://github.com/gatling/gatling-maven-plugin-demo

First, to be able to run the tests via one line shell command (as soon as you can run the test via a shell command, you don't need anything else to run the performance scrips). And yes, you are right. Gatling maven plugin works great for these needs. All you need is just follow the example by this link:https://github.com/gatling/gatling-maven-plugin-demo

第二,最好对Jenkins本身的构建结果有一些了解.在持续交付/部署流程中进行性能测试后,最好立即了解指标趋势.为此,您可以从以下页面开始: https://plugins.jenkins.io/gatling . Jenkins插件可以在Jenkins CI中为您提供有关加特林测试结果的更好的可视性.

Second, it is always better to have some visibility on build results in Jenkins itself. As soon as you have your performance tests as a step of Continuous Delivery/Deployment pipeline, it is better to provide a visibility on metrics trends. For this, you can start with this page:https://plugins.jenkins.io/gatling. Jenkins plugin can provide you much better visibility on Gatling tests results right in the Jenkins CI.

顺便说一句,我们将开始一些系列文章,这些文章将专门介绍Gatling的用法,并且我们将逐步发布有关如何使用Gatling的教程,以此作为您持续集成流程的一个步骤,敬请期待! https://www.blazemeter.com/gatling

Btw, we are starting some series of posts which will be dedicated to Gatling usage and we are going to publish step by step tutorials on how to use Gatling as a step for you continuous integration pipeline so stay tuned! https://www.blazemeter.com/gatling

这篇关于如何将加特林与詹金斯整合的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-25 10:23