Forum Discussion

sumitahuja's avatar
sumitahuja
New Contributor
9 months ago
Solved

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 pipelin...
  • sumitahuja's avatar
    9 months ago

    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}}