# Call Test Collection in a Test Collection

**URL:** <https://forum.katalon.com/t/call-test-collection-in-a-test-collection/45790>\
**Category:** Feature Request\
**Tags:** feature-request, tracked, katalon-studio\
**Created:** [July 22, 2020, 8:26am UTC](https://forum.katalon.com/t/call-test-collection-in-a-test-collection/45790 "2020-07-22T08:26:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joeyxx](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/joeyxx/32/16104_2.png) [@Joeyxx](https://forum.katalon.com/u/Joeyxx)\
**Post date:** [July 22, 2020, 8:26am UTC](https://forum.katalon.com/t/call-test-collection-in-a-test-collection/45790/1 "2020-07-22T08:26:08Z")

</div>

Hi,

I have more than 200 Test Suite in a Test Collection.

These Test Suite contains many Tests Cases.

These Test Suite must be executed in this specific order.

It would be easier to manipulate with the possibility to “plan” the execution of several Test Collection _without console mode_

→ I can continue my job, resolving this ticket can boost my performance

---

<div class="post-metadata">

**Author:** ![ThanhTo](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/thanhto/32/697_2.png) [@ThanhTo](https://forum.katalon.com/u/ThanhTo)\
**Post date:** [July 24, 2020, 4:35am UTC](https://forum.katalon.com/t/call-test-collection-in-a-test-collection/45790/2 "2020-07-24T04:35:19Z")

</div>

HI @Joeyxx

I don’t quite understand yet. What’s the problem with the current Test Suite Collection ? Can you elaborate more on your use case.

---

<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:** [July 24, 2020, 9:50am UTC](https://forum.katalon.com/t/call-test-collection-in-a-test-collection/45790/3 "2020-07-24T09:50:15Z")

</div>

> [@Joeyxx](#):
>
> in a Test Collection.

You can create multiple Test Suite Collections.

If you want to execute your Test Suites in 2 types of sequence, then you can do so by creating 2 TSC.  
If you want to execute your Test Suites in 5 types of sequence, then you can do so by creating 5 TSC.

Having multiple TSC is enough to express your “plans”, isn’t it?

---

<div class="post-metadata">

**Author:** ![Joeyxx](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/joeyxx/32/16104_2.png) [@Joeyxx](https://forum.katalon.com/u/Joeyxx)\
**Post date:** [July 24, 2020, 1:00pm UTC](https://forum.katalon.com/t/call-test-collection-in-a-test-collection/45790/4 "2020-07-24T13:00:08Z")

</div>

If you have several TSC, you must manually run TSC1 then TSC2, etc…

I want to run TSC1 then TSC2 _automatically_, but without console mode.

In my KS project, I have to run TSC2 many times during a test campagne, by night :  
TSC1  
TSC **2**  
TSC3  
TSC4  
TSC5  
TSC **2**  
TSC6  
TSC **2**  
Today, I have something like this :  
TS1  
TS **2**  
TS **3**  
TS4  
TS5  
TS **2**  
TS **3**  
TS6  
TS7  
TS **2**  
TS8  
TS9  
TS10  
TS **3**  
…  
TS200  
TS **2**  
TS **3**

---

<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:** [July 24, 2020, 1:27pm UTC](https://forum.katalon.com/t/call-test-collection-in-a-test-collection/45790/5 "2020-07-24T13:27:05Z")

</div>

OK, possibly I understand your problem.

You need one more layer of control how to compose the testing modules.

Therefore you’ve got an idea of adding a layer which can compose a sequence of TestSuiteCollection. However, I would like to point out that you have another possible way of adding a layer of module composition.

As you possibly know, a Test Case can call other Test Cases by `WebUI.callTestCase()`:

- [https://docs.katalon.com/katalon-studio/docs/common-call-test-case.html](https://docs.katalon.com/katalon-studio/docs/common-call-test-case.html)

You can replace a Test suite with a combination of “Caller Test Case and Callee Test Cases”. With this tool in your hand, you can drastically refactor the structure of your project.

Let me assume, you already have a Test Suite “TS1” which comprises 3 Test Cases “TC1” + "TC2 + “TC3”. Then you can add a new Test Case named “CallerA” which executes the callee test cases “TC1” + “TC2” + “TC3”.

Please note that the CallerA can do the same as what TS1 does.

You can replace all of your existing test suites with caller test cases:

| Your existing Test Suites | -\> | equivalent Caller test case |
| --- | --- | --- |
| TS1 | -\> | Caller1 |
| TS2 | -\> | Caller2 |
| TS3 | -\> | Caller3 |
| … | | … |

And then, _you can transform (re-implement) your existing Test Suite Collections into Test suites._ Each Test Suites will call the Caller test cases which will indirectly execute the Callee test cases.

| Your existing Test Suite Collections | -\> | refactored to new Test Suites |
| --- | --- | --- |
| TSC1 | -\> | nTS1 |
| TSC2 | -\> | nTS2 |
| TSC3 | -\> | nTS3 |
| TSC4 | -\> | nTS4 |
| TSC5 | -\> | nTS5 |

Once done, **all of your existing Test Suite Collections will be migrated to a set of new Test Suites**.

Then you have got a room of introducing new series of Test Suite Collections. Your new Test Suite Collection can execute any combination of nTS1, nTS2, nTS3 … _automatically_ in a designed sequence.

---

<div class="post-metadata">

**Author:** ![Joeyxx](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/joeyxx/32/16104_2.png) [@Joeyxx](https://forum.katalon.com/u/Joeyxx)\
**Post date:** [July 24, 2020, 2:35pm UTC](https://forum.katalon.com/t/call-test-collection-in-a-test-collection/45790/6 "2020-07-24T14:35:55Z")

</div>

Hi @ThanhTo ,

@kazurayam explain my request far better than me :  
“You need one more layer of control how to compose the testing modules.”

🙂
