Passing Variables Between Testcases

Hello,

I was wondering if someone can tell me how to pass a variable that is gotten in one testcase and use it in another testcase.
For example,
In testcase 1 we get a value from a post command and assign it to a variable. So value = xyz

I then want to take the variable called value and use the content of value in testcase 2.
value2 = value

Thank you

If you are passing variables from one Test Case to another Test Case within a Test Suite, you can do it with Global Variables or static variables, as discussed in the link below.

Global Variables and Execution Profile | Katalon Docs

If you are passing variables from one Test Case to another Test Case outside of a Test Suite, then you need to Save those variables to a spreadsheet or data file. There are examples of this on this forum, such as:

Or use WebUI.callTestCase() to return a value from a test case to another test case.

Thank you for the input. It all worked out now.