algattik / azure-pipelines-jmeter-extension

Azure Pipelines extension for JMeter and Taurus test tools
MIT License
12 stars 6 forks source link

TaurusRunner@0 task fails if JMeterInstaller@0 task is named or changed from default name #19

Open oktab1 opened 2 years ago

oktab1 commented 2 years ago

Hi @algattik , first, thanks for this awesome extension. I think it works great.

I hope this issue isn't documented already but I don't think I saw it among known issues or in the documentation.

To Reproduce

Pipeline Error

Pipeline fails at TaurusRunner@0 task with the following error

[warning]Can\'t find loc string for key: InputVersionNotValidVersion

[error]Error: InputVersionNotValidVersion $(JMeterInstaller.JMeterVersion)

Troubleshooting

Checking the variable for $(JMeter.JMeterVersion), the value is displayed as INSTALLJMETERONAGENT_JMETERVERSION=5.4.1 where INSTALLJMETERONAGENT is the name given to task JMeterInstaller@0. This variable is different from the default JMETERINSTALLER_JMETERVERSION=5.4.1 which is assigned to the variable when no name is specified.

Conclusion

Suggestion

Update the code to automatically get the variable name of task JMeterInstaller@0 or add documentation to