# TestClosure --- executing Groovy Closures in multi-Threads in a Test Case simultaneously

**URL:** <https://forum.katalon.com/t/testclosure-executing-groovy-closures-in-multi-threads-in-a-test-case-simultaneously/52436>\
**Category:** Miscellaneous\
**Tags:** start-page\
**Created:** [February 24, 2021, 1:10pm UTC](https://forum.katalon.com/t/testclosure-executing-groovy-closures-in-multi-threads-in-a-test-case-simultaneously/52436 "2021-02-24T13:10:32Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [January 20, 2022, 2:56am UTC](https://forum.katalon.com/t/testclosure-executing-groovy-closures-in-multi-threads-in-a-test-case-simultaneously/52436/12 "2022-01-20T02:56:20Z")

</div>

Now I do not recommend for others to follow my TestClosure approach any longer.

See the following post for the reason why I don’t.

> [@Run concurrent tests within a test suite](http://forum.katalon.com/t/run-concurrent-tests-within-a-test-suite/61601/3):
>
> Here is what I have done. I tried to run Groovy Closures in multiple Java Threads (2 threds, 4 threads, 8 threads, …) in a Test Case script. It worked for me. However I do not recommend you to follow this way. Because any problems in this system are difficult to analyse and fix. I haven’t developed any easy-to-use debugging facility for “multi-threaded Test Cases” (I am not capable of developing such magical thing). I only have the Stack Trace messages emitted by Exceptions. I am OK with it…

Primarily because

> However I do not recommend you to follow this way. Because any problems in this system are difficult to analyse and fix. I haven’t developed any easy-to-use debugging facility for “multi-threaded Test Cases” (I am not capable of developing such magical thing). I only have the Stack Trace messages emitted by Exceptions. I am OK with it, but you would be not. I do not think I can support you remotely.

---

_[View the full topic](https://forum.katalon.com/t/testclosure-executing-groovy-closures-in-multi-threads-in-a-test-case-simultaneously/52436)._
