Issue sending Environment variable to TestComplete via Azure pipeline using command-line Parameters
Hi there,
I'm trying to create an Azure pipeline to send project Environment variable called environment to Test complete to change the testedApp based on the environment variable set in the pipeline.
I've followed the instructions on Pass Environment Variables to TestComplete Tests | TestComplete Documentation (smartbear.com)
But, it doesn't seem to work. Is there any other setting that needs to be done?
Thank you for your help Smartbear community,
I've found a solution to send the parameter using command line script and sending the parameter value to a txt file, then setting the value in the txt file as the project variable. It seems to work
- script: |
cd $(System.DefaultWorkingDirectory)
Echo off
Echo %Environment% > parameters.txt
displayName: 'Command Line Script'
env:
Environment: ${{parameters.Environment}}