Skip to content

6.2.0

Choose a tag to compare

@hmrc-web-operations hmrc-web-operations released this 10 Jul 09:26
· 4 commits to main since this release
c3748aa

Release : performance-test-runner 6.2.0

Last commit sha : c3748aa
Last commit author : Wayne Ellis
Last commit time : 2025-07-10T09:23:04Z

Merge pull request #69 from hmrc/PLATUI-3780_gatling-3.13.5

Plat UI 3780 main to gatling 3.13.5

Migration Guide

Current known changes and issues

Gatling EL that used to use $${} now should be #{}

(readme / getting started needs updating)

Jenkins gatling plugin no longer finds the gatling report

  • Add .withGatlingReport() to your performance test jobs builder to include a download link for test report.

Seeing an java Error

java.lang.IllegalAccessException: module java.base does not open java.lang to unnamed module

This appears to be issue with java 21, reverting to java 11 it should work, currently investigating fix.

PauseBuilder is inaccessible

Swap existing pause code

def pause(int: Int) = new PauseBuilder(int second, None)

or

val pause = new PauseBuilder(6000 milliseconds, None)

to

def sessionPause(int: Int) = pause(int second).actionBuilders.last

or

val pauseTest = pause(6000 milliseconds).actionBuilders.last

Error if using Doif

).map(doIf(versionSupportsTaxYear(version)))

[error]  found   : (io.gatling.core.action.builder.Executable, Seq[io.gatling.core.action.builder.Executable]) => io.gatling.core.structure.ChainBuilder
[error]  required: io.gatling.core.structure.ChainBuilder => io.gatling.core.structure.ChainBuilder
[error]       ).map(doIf(versionSupportsTaxYear(version)))

convert to

).map(cb => doIf(versionSupportsTaxYear(version))(cb))
type mismatch;

Error if using _*

exec(
pause(1.seconds, maxPause),
exec(requests: _*)
)

testing the solution of moving to

exec(
pause(1.seconds, maxPause),
exec(requests)
)