Azure Load Testing Framework dynamic secret handling & local configuration
Andre Ostermeier
0
Reputation points
Hello,
in the last 4 weeks I have made myself familiar with Azure Load Testing and I am currently facing two issues where I would like to find a better solution for.
- The scenario I have is 100 Devices doing a load test against and IoTHub endpoint. Each Device has its own secret, that is required to establish the connection. Azure Load Testing allows to ingest secrets from Key Vault via configuration. Is there any way to dynamically access those ingested secrets. The docs only show the static access unfortunately.
Is there a way to access appToken1, appToken2 ... in JMeter without creating one explicit User Defined Variable per Device? I would like to avoid having a 1:1 mapping in JMeter as this would require 100 User Defined Variables.
- Before uploading the JMeter file to Azure Load Testing I usually have to change some User Defined Variables so it can deal with the different runtime environment. Giving one explicit example. I have created a custom Java plugin and in my Test Plan configuration I have a different path locally than on Azure Load Testing. But it would be great to dynamically recognize the runtime environment. Is there any parameter that allows my to identify I am running on Azure Load Testing? Another example connects quite will to bullet number 1. For local testing I want to use a User Defined Variable with a hard coded appToken here:
And before uploading it to Azure Load Testing I have to remember to change it back so it works in this environment. Any nifty way to make this dynamic?
Thank you so much,
Andre
Sign in to answer