# Passing Variables Between Testcases

**URL:** <https://forum.katalon.com/t/passing-variables-between-testcases/80725>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [November 18, 2022, 3:01am UTC](https://forum.katalon.com/t/passing-variables-between-testcases/80725 "2022-11-18T03:01:08Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![grylion54](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/grylion54/32/16265_2.png) [@grylion54](https://forum.katalon.com/u/grylion54)\
**Post date:** [November 18, 2022, 5:22am UTC](https://forum.katalon.com/t/passing-variables-between-testcases/80725/2 "2022-11-18T05:22:46Z")

</div>

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](https://docs.katalon.com/docs/legacy/katalon-studio-enterprise/test-execution/data-driven-testing/global-variables-and-execution-profile)

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:

> [@Katalon writing data to excel](http://forum.katalon.com/t/katalon-writing-data-to-excel/61587/2):
>
> I explained how you can do this in your other question on this topic. Start there. However, you need to move off the Manual tab onto the Script tab or you can “translate” what I put down from that question into the Manual tab. If this doesn’t fulfill your need, then we can give more information. Edit: To make it even easier, I brought what I wrote there over to this question: 
> 
> > **Maybe like this:**
> >
> > I need to read a client name between Test Suites, so I save the name from one Test Case of Suite 1 i…

---

_[View the full topic](https://forum.katalon.com/t/passing-variables-between-testcases/80725)._
