Skip to content

Variable name not trimmed; trailing blank is significant #5872

@steverawlins-zebra

Description

@steverawlins-zebra

Expected behavior

Trim my variable duration to be duration so that ${duration} would work

Actual behavior

Failed to run ThreadGroup because the duration, in seconds, was supplied by a variable in the User Variables element and that element does not trim trailing spaces so there was no match.

duration_has_trailing_space

Steps to reproduce the problem

<hashTree>
  <Arguments guiclass="ArgumentsPanel" testclass="Arguments" testname="Local User Defined Variables" enabled="true">
    <collectionProp name="Arguments.arguments">
      <elementProp name="duration" elementType="Argument">
        <stringProp name="Argument.name">duration </stringProp>
        <stringProp name="Argument.value">60</stringProp>
        <stringProp name="Argument.metadata">=</stringProp>
      </elementProp>

JMeter Version

5.5

Java Version

17.0.3

OS Version

MacOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions