perfana-events-wiremock

Works with perfana-java-client maven plugins to generate wiremock events during load tests. For instance to reset wiremock instances or to increase delay times dynamically.

Лицензия

Лицензия

Категории

Категории

Wire Данные Data Structures
Группа

Группа

nl.stokpop
Идентификатор

Идентификатор

perfana-events-wiremock
Последняя версия

Последняя версия

0.0.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

perfana-events-wiremock
Works with perfana-java-client maven plugins to generate wiremock events during load tests. For instance to reset wiremock instances or to increase delay times dynamically.
Ссылка на сайт

Ссылка на сайт

https://www.stokpop.nl
Система контроля версий

Система контроля версий

https://github.com/stokpop/perfana-events-wiremock

Скачать perfana-events-wiremock

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/nl.stokpop/perfana-events-wiremock/ -->
<dependency>
    <groupId>nl.stokpop</groupId>
    <artifactId>perfana-events-wiremock</artifactId>
    <version>0.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/nl.stokpop/perfana-events-wiremock/
implementation 'nl.stokpop:perfana-events-wiremock:0.0.1'
// https://jarcasting.com/artifacts/nl.stokpop/perfana-events-wiremock/
implementation ("nl.stokpop:perfana-events-wiremock:0.0.1")
'nl.stokpop:perfana-events-wiremock:jar:0.0.1'
<dependency org="nl.stokpop" name="perfana-events-wiremock" rev="0.0.1">
  <artifact name="perfana-events-wiremock" type="jar" />
</dependency>
@Grapes(
@Grab(group='nl.stokpop', module='perfana-events-wiremock', version='0.0.1')
)
libraryDependencies += "nl.stokpop" % "perfana-events-wiremock" % "0.0.1"
[nl.stokpop/perfana-events-wiremock "0.0.1"]

Зависимости

compile (3)

Идентификатор библиотеки Тип Версия
io.perfana : perfana-java-client jar 1.3.1
org.apache.httpcomponents : httpclient jar 4.5.6
org.apache.httpcomponents : httpmime jar 4.5.6

test (2)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.11
com.github.tomakehurst : wiremock jar 2.21.0

Модули Проекта

Данный проект не имеет модулей.

test-events-wiremock

Events to load and change wiremock stubs during load tests.

Properties:

  • wiremockFilesDir the directory where to find the wiremock files
  • wiremockUrl the wiremock urls, comma separated
  • useProxy on port 8888, for example to use with fiddler

Custom events:

  • wiremock-change-delay use to change delay of wiremock instances at specific time

Example wiremock response with a dynamic delay:

{
  "request": {
    "method": "GET",
    "url": "/delay"
  },
  "response": {
    "status": 200,
    "body": "Hello world! from Wiremock, with delay :-)",
    "fixedDelayMilliseconds": ${delay},
    "headers": {
      "Content-Type": "text/plain"
    }
  }
}

Put this in a file at in the files dir and it gets uploaded with the specific delay.

Define the delays in a eventSchedulerScript, example in use with events-gatling-maven-plugin:

<eventSchedulerScript>
    PT0S|wiremock-change-delay|delay=400
    PT30S|wiremock-change-delay|delay=4000
    PT1M30S|wiremock-change-delay|delay=8000
</eventSchedulerScript>

This means: set delay to 400 milliseconds at the start of the Gatling load test. Then increase the response time to 4000 milliseconds after 30 seconds. And increase response tim to 8000 milliseconds after 1 minute and 30 seconds.

Works with the Stokpop event-scheduler framework:

Версии библиотеки

Версия
0.0.1