Passing JMeter user defined variables as parameters in GitHub workflow

26 Views Asked by At

In JMeter, parameterised the URL and declared it in UDV as below. enter image description here Replaced the HTTP requests as ${URL} Want to run this test in Azure Load test resource using github workflows.Declared the URL as inputs and in the env as below. enter image description here enter image description here

Also tried sending value as ${{ github.event.inputs.URL}}. But it didn't work. When workflow is triggered, the URL value is passed as empty. How to fix this.

1

There are 1 best solutions below

0
On

From JMeter perspective the way of accessing an environment variable value is correct apart from the small improvement: you should use __groovy() function.

enter image description here

or alternatively there is __env() function which can be installed as a part of Custom JMeter Functions bundle using JMeter Plugins Manager

From Github Actions perspective you can access the value as ${{ github.event.inputs.URL }} where required