# Programmaticallyadd/delete TestSuite, TestCase, etc?

**URL:** <https://forum.katalon.com/t/programmaticallyadd-delete-testsuite-testcase-etc/19654>\
**Category:** Web Testing\
**Tags:** web-testing, katalon-studio\
**Created:** [February 19, 2019, 4:08pm UTC](https://forum.katalon.com/t/programmaticallyadd-delete-testsuite-testcase-etc/19654 "2019-02-19T16:08:23Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Donato\_Angelo\_Di\_Cro](https://avatars.discourse-cdn.com/v4/letter/d/f9ae1b/32.png) [@Donato\_Angelo\_Di\_Cro](https://forum.katalon.com/u/Donato_Angelo_Di_Cro)\
**Post date:** [February 19, 2019, 4:08pm UTC](https://forum.katalon.com/t/programmaticallyadd-delete-testsuite-testcase-etc/19654/1 "2019-02-19T16:08:23Z")

</div>

Is there a way to write some code to add programmatically (java/groovy) test suites to the testsuites root folder and test cases to the test cases root folder?  
Thanks in advance

---

<div class="post-metadata">

**Author:** ![Russ\_Thomas](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/russ_thomas/32/11884_2.png) [@Russ\_Thomas](https://forum.katalon.com/u/Russ_Thomas)\
**Post date:** [February 19, 2019, 4:10pm UTC](https://forum.katalon.com/t/programmaticallyadd-delete-testsuite-testcase-etc/19654/2 "2019-02-19T16:10:46Z")

</div>

Loosely speaking, yes.

Groovy (and Java) can manipulate the file system in any way you wish. Copying/moving files around, included.

Is there a built in method to do that? No. You’d need to write a custom Keyword to do it.

---

<div class="post-metadata">

**Author:** ![Donato\_Angelo\_Di\_Cro](https://avatars.discourse-cdn.com/v4/letter/d/f9ae1b/32.png) [@Donato\_Angelo\_Di\_Cro](https://forum.katalon.com/u/Donato_Angelo_Di_Cro)\
**Post date:** [February 19, 2019, 5:02pm UTC](https://forum.katalon.com/t/programmaticallyadd-delete-testsuite-testcase-etc/19654/3 "2019-02-19T17:02:18Z")

</div>

thanks for your prompt reply. Do you have any knowledge of which classes/packages to use for it?

to obtain something like:  
TestSuiteRootDir.addNewTestSuite(“my new TS”);

without using dialog or graphic interface classes…

Thanks again,  
Donato

---

<div class="post-metadata">

**Author:** ![Russ\_Thomas](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/russ_thomas/32/11884_2.png) [@Russ\_Thomas](https://forum.katalon.com/u/Russ_Thomas)\
**Post date:** [February 19, 2019, 5:04pm UTC](https://forum.katalon.com/t/programmaticallyadd-delete-testsuite-testcase-etc/19654/4 "2019-02-19T17:04:28Z")

</div>

You’re very likely to want [java.File.io](http://java.File.io) and some of its friends:

[https://docs.oracle.com/javase/7/docs/api/java/io/File.html](https://docs.oracle.com/javase/7/docs/api/java/io/File.html)

---

<div class="post-metadata">

**Author:** ![Donato\_Angelo\_Di\_Cro](https://avatars.discourse-cdn.com/v4/letter/d/f9ae1b/32.png) [@Donato\_Angelo\_Di\_Cro](https://forum.katalon.com/u/Donato_Angelo_Di_Cro)\
**Post date:** [February 19, 2019, 5:15pm UTC](https://forum.katalon.com/t/programmaticallyadd-delete-testsuite-testcase-etc/19654/5 "2019-02-19T17:15:44Z")

</div>

thanks again. Am I not supposed to use _Katalon_ packages (“com.kms.katalon…”) to create TestSuites and TestCases instances???  
Do I have to create folders with ordinary [File.IO](http://File.IO) classes only?..  
What about the .groovy files and the .ts / .tc files created by using the GUI?

Thanks,  
Donato

---

<div class="post-metadata">

**Author:** ![Russ\_Thomas](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/russ_thomas/32/11884_2.png) [@Russ\_Thomas](https://forum.katalon.com/u/Russ_Thomas)\
**Post date:** [February 19, 2019, 5:20pm UTC](https://forum.katalon.com/t/programmaticallyadd-delete-testsuite-testcase-etc/19654/6 "2019-02-19T17:20:29Z")

</div>

I was answering your original question as best I could understand it. I don’t know if the katalon APIs provide what you need.

---

<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:** [February 19, 2019, 5:30pm UTC](https://forum.katalon.com/t/programmaticallyadd-delete-testsuite-testcase-etc/19654/7 "2019-02-19T17:30:23Z")

</div>

Hi there  
@Donato_Angelo_Di_Cro

Katalon Studio does not provide you with these capabilities. But Katalon Platform does. It’s a set of APIs we are building to extend Katalon Studio’s existing capabilities. These extensions include the ability to create/modify Test Case and Test Suite. Please read the following.

> [@Katalon Roadmap](http://forum.katalon.com/t/katalon-roadmap/18947/2):
>
> Hi @Kenneth.Luczka I am not certain about the features that will be included in the upcoming releases, besides bug fixes that is. However, we are building [Katalon Platform](https://github.com/katalon-studio/katalon-studio-platform) which provides API for developers to extend capabilities of Katalon Studio to their own testing purposes. As you probably know, Katalon Store is coming soon, and the store will contain some plug-ins that we have already built which provide the ability to [execute test cases based on query conditions from command line](https://store.katalon.com/product/2), [auto he…](https://store.katalon.com/product/5)

> [@Open-source Katalon Plugin Platform (Beta)](http://forum.katalon.com/t/open-source-katalon-plugin-platform-beta/17248):
>
> Hi everyone, As our user base is growing quickly, we have received many requests to expand Katalon Studio’s capabilities. Due to the large number of requests, we have been working on an open-source plugin platform, which will allow users to extend and adapt Katalon Studio into any SDLC. Here’s a sneak peek: There will be two types of plugins: IDE plugins that provide extra functions for Katalon Studio including but not limited to integration with other systems and dynamic test case execution…

[http://forum.katalon.com/t/tutorial-create-your-first-katalon-studio-plugin/18088](http://forum.katalon.com/t/tutorial-create-your-first-katalon-studio-plugin/18088)  
Regards !

---

<div class="post-metadata">

**Author:** ![Donato\_Angelo\_Di\_Cro](https://avatars.discourse-cdn.com/v4/letter/d/f9ae1b/32.png) [@Donato\_Angelo\_Di\_Cro](https://forum.katalon.com/u/Donato_Angelo_Di_Cro)\
**Post date:** [February 20, 2019, 8:54am UTC](https://forum.katalon.com/t/programmaticallyadd-delete-testsuite-testcase-etc/19654/8 "2019-02-20T08:54:52Z")

</div>

Thanks to you all for the useful suggestion!
