Skip to content

Stub function for Azure Load Testing - can't retrieve credentials from both JMeter Properties and Environment variables #37

Description

@danzone

Hi all, I've installed Stub function for Azure Load Testing plugin, with following info:

  • Stub function for Azure Load Testing plugin: 0.1.0
  • Apache JMeter: 5.6.3
  • O.S. Windows 11
  • JVM: OpenJDK 64-Bit Server 21.0.8

I configured the store type in user.properties:

azure_load_testing_stub.get_secret.mySecretName.store_type=environment_variable

Then I set up an environment variable in my Windows 11 laptop:

$env:AZURE_LOAD_TESTING_STUB_GET_SECRET_mySecretName='MY_SECRET_PASSWORD'

Then I configured my script to use these credentials within Authorization Manager:

Image

but the secret value isn't loaded from env variable (I extracted from header request the Authorization header, Base64 decoded it and the password is empty).

I tried also to user the JMeter properties approach, configuring it in user.properties as follows:

azure_load_testing_stub.get_secret.mySecretName.store_type=jmeter_properties
azure_load_testing_stub.get_secret.mySecretName.value=MY_SECRET_PASSWORD

restarted JMeter, but nothing change: no secret value is extracted from user.properties. I also tried to use jmeter.properties file instead of user.properties, but nothing change.

Am I missing something?

Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions