Forum Discussion

htroost's avatar
htroost
New Contributor
8 years ago
Solved

How to override Environment value for parameter when env key name matches param name?

I am testing an API that requires an API key in the header. 

 

There was an environment variable called ApiKey; let's say its value was xxxxx. 

When I tried to override this header for an unhappy path test, I couldn't. While the override value remained in the header box, the environment value was what was actually was actually sent.

 

When I tried deleting the environment value, it still overrode my custom value, but just with a blank. 

 

Help?

  • It turns out that the issue was a set request headers script at the project level that overrode local settings. >.<

2 Replies

  • The Project properties are unique for default environment and for each environment added. Each will maintain a unique copy. Do you have a project property expansion in the header? Something like this ${#Project#HeaderPropName}

     

     

     

    • htroost's avatar
      htroost
      New Contributor

      It turns out that the issue was a set request headers script at the project level that overrode local settings. >.<