Global variables in Authorization username and password


#1

Hello,

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?

Thanks.


#2

Yes you can. Many ways to do this but one method is this:

https://docs.katalon.com/katalon-studio/docs/variable-types.html#groovy-variables

You have profile global variables, you can also call in variables from a spreadsheet which can be a file such as excel or a locally built one.