Search code examples
jmeterjmeter-4.0taurus

Taurus - Overriding a jmeter property in test endpoint


How to override a test endpoint in .jmx file from Taurus yaml. My jmx file includes both GET and POST methods. Currently i have set the url like ‘${__P(url)}/api/login’ in jmx and in Taurus as of below:

execution: - scenario: jmeter scenarios: jmeter: script: sample-test.jmx requests: - url: 'endpoint'


Solution

  • I was able to resolve the problem and the solution is as of below

    Taurus command line: bzt -o settings.env.TESTING_URL=$TESTING_URL test.yaml Note: The setting .env will read the dynamic value and store it on TESTING_URL

    Within the yaml file add the below lines: modules: jmeter: properties: TESTING_URL: ${TESTING_URL}

    in Jmeter-> ${__P(TESTING_URL)}