Noob question from someone just starting to use Katalon Studio for API testing.
I am using basic Authorization for each request. The username and password is the same for all requests, however in the future it may change. When it does, I don’t want to go through each request and update it with the new username and password.
How can I do this? Can I use Global Variables for username and password?
@just-passin-thru
You can use variables only in HTTP Header for this purpose.
The Authorization tab is only a helper to create/update this value.
Since you are asking for username:password I guess you are using Basic authentication.
To use a Global Variable in this scope, you must first create one, let’s say with the name credentials
Now you have to create an Authorization header field with a value like Basic ${GlobalVariable.credentials}
The value of the credentials variable must be the base64 encoding of the username:password string.
Or you can save the entire Basic (*blah(£" string to a variable if it is more convenient to you (and use the Authorization tab to quickly generate it)