edgexfoundry / edgex-taf

Apache License 2.0
11 stars 25 forks source link

Support custom file global_variables.py #828

Closed MILANOFCOFEE closed 1 year ago

MILANOFCOFEE commented 1 year ago

Hello, everybody. I need help with how to custom BASE_URL = "localhost" jwt_token = '' I custom auto-get URL with [library netifaces|import netifaces"] to get IP my local and [import subprocess using file bash.sh]| to get jwt_token. But when I ran the test I got a problem No Module Netiface. I installed netifaces but it did not solve the problem. https://github.com/edgexfoundry/edgex-taf/blob/main/TAF/config/global_variables.py Thank you so much !

cherrycl commented 1 year ago

If the token is fixed, you can just put the token here, and comment out theGet Token and Remove Token keyword on every suite. If the token is only generated before running suite, you can implement your script to replace api-gateway-token.sh with same file name. The file will be executed by Get Token and Remove Token keyword.