# \*\*\* Why drag and drop doesn't work in Custom Keyword Keyword \*\*\*

**URL:** <https://forum.katalon.com/t/why-drag-and-drop-doesnt-work-in-custom-keyword-keyword/28881>\
**Category:** Feature Request\
**Tags:** feature-request, katalon-studio\
**Created:** [June 28, 2019, 5:38pm UTC](https://forum.katalon.com/t/why-drag-and-drop-doesnt-work-in-custom-keyword-keyword/28881 "2019-06-28T17:38:43Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![focis.automation](https://avatars.discourse-cdn.com/v4/letter/f/90ced4/32.png) [@focis.automation](https://forum.katalon.com/u/focis.automation)\
**Post date:** [June 28, 2019, 5:38pm UTC](https://forum.katalon.com/t/why-drag-and-drop-doesnt-work-in-custom-keyword-keyword/28881/1 "2019-06-28T17:38:43Z")

</div>

Hi Katalon team, @devalex88 , @ThanhTo @kazurayam@Russ_Thomas

Why drag and drop doesn’t work in Custom Keyword section…??? Is there any possible reason. Please let us know.

In case, if drag and drop is not supported/allowed in Custom Keyword, please provide the possible workaround how to move customkeyword between packages in the most effective/ efficient ways.

Thanks team for looking into this.

 ![Key](https://europe1.discourse-cdn.com/katalon/original/2X/4/40a3698686c284c112c657655c3e49c08f032307.png)

---

<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:** [June 28, 2019, 9:38pm UTC](https://forum.katalon.com/t/why-drag-and-drop-doesnt-work-in-custom-keyword-keyword/28881/2 "2019-06-28T21:38:08Z")

</div>

> [@focis.automation](#):
>
> Why drag and drop doesn’t work in Custom Keyword section…??? Is there any possible reason. Please let us know.

I could confirm, drag and drop doesn’t work in the Keyword section.  
I do not know the reason as I am not a Katalon developer.

> [@focis.automation](#):
>
> how to move customkeyword between packages in the most effective/ efficient ways.

I suppose that you already know it, but let me describe…

1. Assuming you have a package `browser` where you have a class file `Advanced.groovy`
2. and you want to move the `Advanced` class to a new package `nuevo`.
3. You create a new package `nuevo` manually
4. In the `nuevo` package, you create a new class file `Advanced.groovy`, which will be filled with a few lines of codes:

```auto
package nuevo

import static com.kms.katalon.core.checkpoint.CheckpointFactory.findCheckpoint
import static com.kms.katalon.core.testcase.TestCaseFactory.findTestCase
import static com.kms.katalon.core.testdata.TestDataFactory.findTestData
import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject

import com.kms.katalon.core.annotation.Keyword
import com.kms.katalon.core.checkpoint.Checkpoint
import com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords as CucumberKW
import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as Mobile
import com.kms.katalon.core.model.FailureHandling
import com.kms.katalon.core.testcase.TestCase
import com.kms.katalon.core.testdata.TestData
import com.kms.katalon.core.testobject.TestObject
import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI

import internal.GlobalVariable

public class Advanced {
}

```

1. You go back to the source file of the `browser.Advanced` class. You copy its code to the clipboard.
2. You go to the source of the `nuevo.Advanced` class. You paste stuff at the end of the source from the clipboard.
3. The `nuevo.Advanced` class will become syntactically wrong. You need to rewrite code to fix syntax errors.
4. save the `nuevo.Advanced` source.
5. remove the original `browser.Advanced` source.
6. You want to identify every references in the project to the original `browser.Advanced` class. These references are now causing error (_No class definition found_). You change all references so that they point to the new `nuevo.Advanced.`
7. done

---

<div class="post-metadata">

**Author:** ![focis.automation](https://avatars.discourse-cdn.com/v4/letter/f/90ced4/32.png) [@focis.automation](https://forum.katalon.com/u/focis.automation)\
**Post date:** [June 29, 2019, 5:51pm UTC](https://forum.katalon.com/t/why-drag-and-drop-doesnt-work-in-custom-keyword-keyword/28881/3 "2019-06-29T17:51:16Z")

</div>

Thanks @kazurayam for explaining it in detail.

> [@kazurayam](#):
>
> I could confirm, drag and drop doesn’t work in the Keyword section.  
> I do not know the reason as I am not a Katalon developer.

@devalex88 @Trong_Bui @ThanhTo @katalon.team @Zarashima @Russ_Thomas

Hi Katalon DEV Team, could you please tell why drag and drop doesn’t work for Custom Keywords.

It’s a very big **paint point.** , since handling it manually is **_painstaking_** , time consuming and error-prone. Please respond. Thanks.

---

<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:** [June 29, 2019, 10:18pm UTC](https://forum.katalon.com/t/why-drag-and-drop-doesnt-work-in-custom-keyword-keyword/28881/4 "2019-06-29T22:18:43Z")

</div>

I personally would not take this issue (in Keywords folder, moving a class accross packages is not supported) so seriously.

I do develop new Custom keywords quite some times. When I develop a new Custom keywords, I would at first write a unit-test using [junit4ks](https://github.com/kazurayam/junit4ks) for the Custom keyword class and always spend enough hours before writing a lot of dependent test case scripts. While doing unit-tests, I will think enough about the package name until I get comfortable about it. Therefore I would rarely need the “Refactoring” feature for Custom keywords to rewrite dependent test cases automatically.

I would rather hope Katalon Team to work on the other significant issues.

---

<div class="post-metadata">

**Author:** ![focis.automation](https://avatars.discourse-cdn.com/v4/letter/f/90ced4/32.png) [@focis.automation](https://forum.katalon.com/u/focis.automation)\
**Post date:** [June 30, 2019, 5:49pm UTC](https://forum.katalon.com/t/why-drag-and-drop-doesnt-work-in-custom-keyword-keyword/28881/5 "2019-06-30T17:49:02Z")

</div>

> [@kazurayam](#):
>
> I personally would not take this issue (Refactoring is not supported for Keywords) so seriously.

Katalon’s selling point is it’s ease of use, and it especially helps people with limited technical skill’s to use an automation tool with confidence. That being said… refactoring is a fundamental feature of any IDE that can’t be compromised.

I would request Katalon Team not to neglect these fundamental functionalities,

---

<div class="post-metadata">

**Author:** ![devalex88](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/devalex88/32/336_2.png) [@devalex88](https://forum.katalon.com/u/devalex88)\
**Post date:** [August 5, 2019, 8:35am UTC](https://forum.katalon.com/t/why-drag-and-drop-doesnt-work-in-custom-keyword-keyword/28881/6 "2019-08-05T08:35:41Z")

</div>

Thank you for the suggestion. We will add this to 6.4.0’s backlog.

---

<div class="post-metadata">

**Author:** ![focis.automation](https://avatars.discourse-cdn.com/v4/letter/f/90ced4/32.png) [@focis.automation](https://forum.katalon.com/u/focis.automation)\
**Post date:** [September 17, 2019, 7:10am UTC](https://forum.katalon.com/t/why-drag-and-drop-doesnt-work-in-custom-keyword-keyword/28881/7 "2019-09-17T07:10:26Z")

</div>

Thanks @devalex88

Katalon 7.0 is on it way … Can we expect it during that release?

---

<div class="post-metadata">

**Author:** ![devalex88](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/devalex88/32/336_2.png) [@devalex88](https://forum.katalon.com/u/devalex88)\
**Post date:** [September 17, 2019, 3:25pm UTC](https://forum.katalon.com/t/why-drag-and-drop-doesnt-work-in-custom-keyword-keyword/28881/8 "2019-09-17T15:25:03Z")

</div>

Please check the 7.0 beta version for this feature.

---

<div class="post-metadata">

**Author:** ![focis.automation](https://avatars.discourse-cdn.com/v4/letter/f/90ced4/32.png) [@focis.automation](https://forum.katalon.com/u/focis.automation)\
**Post date:** [September 18, 2019, 8:36am UTC](https://forum.katalon.com/t/why-drag-and-drop-doesnt-work-in-custom-keyword-keyword/28881/9 "2019-09-18T08:36:17Z")

</div>

Thanks @devalex88 I tried the drag and drop in 7.0 beta …with the sample project and faced issue.

> **[GitHub - katalon-studio-samples/shopping-cart-tests](https://github.com/katalon-studio-samples/shopping-cart-tests)**
>
> Contribute to katalon-studio-samples/shopping-cart-tests development by creating an account on GitHub.

Steps to reproduce:

1. Created a package named complex.
2. Drag and dropped the ‘Login.groovy’ from **simple** to **complex** package as shown in the below image.
3. Ran the TC : **Order and check out a single product** , which failed due to issue in ‘shop.groovy’ keyword in simple package.

 ![Cus%20Keyword%20Drag](https://europe1.discourse-cdn.com/katalon/original/2X/c/c07d247154154eb4caff47b816a4bf57cbe2968c.png)

---

<div class="post-metadata">

**Author:** ![Jass](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/jass/32/9588_2.png) [@Jass](https://forum.katalon.com/u/Jass)\
**Post date:** [October 21, 2019, 7:03am UTC](https://forum.katalon.com/t/why-drag-and-drop-doesnt-work-in-custom-keyword-keyword/28881/10 "2019-10-21T07:03:59Z")

</div>

Hello @focis.automation

Thank you for reporting this issue. Unfortunately, now you can only refactor custom keywords in test cases, NOT in the Custom Keyword section. The enhancement of this feature will be released in the upcoming versions.

Cheers

Jass

---

<div class="post-metadata">

**Author:** ![Jass](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/jass/32/9588_2.png) [@Jass](https://forum.katalon.com/u/Jass)\
**Post date:** [November 22, 2019, 4:38am UTC](https://forum.katalon.com/t/why-drag-and-drop-doesnt-work-in-custom-keyword-keyword/28881/12 "2019-11-22T04:38:11Z")

</div>

Hi there,

Now you can refactor custom keywords in both test cases and the Custom Keyword section with Katalon Studio 7.1+.

Katalon Studio 7.1 will be available soon. Read more about its [release note](https://docs.katalon.com/katalon-studio/new/version-71.html).

Jass

---

<div class="post-metadata">

**Author:** ![Jass](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/jass/32/9588_2.png) [@Jass](https://forum.katalon.com/u/Jass)\
**Post date:** [March 13, 2020, 7:39am UTC](https://forum.katalon.com/t/why-drag-and-drop-doesnt-work-in-custom-keyword-keyword/28881/13 "2020-03-13T07:39:44Z")

</div>

Closed on March 13, 2020, 7:39am UTC


