Environment:
Precondition:
Open a test case in Script Mode view.
Steps to Reproduce:
-
Open any test case in Script Mode.
-
Drag an object from the Object Repository into the script editor.
Expected Result:
The corresponding reference should be automatically added to the script, e.g.:
findTestObject(‘Object Repository/Announcement/menu_announcement’)
Actual Result:
No reference is added to the script after dragging the object.
Impact:
This prevents users from quickly inserting test objects into script mode, reducing productivity and consistency when authoring test cases.
Workarounds
- Manually type/paste
findTestObject('Object Repository/...') for now.
- Delete the explorer preference file:
com.kms.katalon.composer.explorer.prefs under the Katalon .metadata/.plugins/org.eclipse.core.runtime/.settings folder, then restart Katalon.
- If the issue appeared after an update, try a clean workspace or re-import the project.
Expected Script Insert
findTestObject('Object Repository/Announcement/menu_announcement')
That is the normal behavior for dragging a Test Object into Script Mode.
This looks like a regression in Katalon Studio—dragging objects into Script Mode should auto‑insert references, but in 11.1.3 it doesn’t. It disrupts productivity since users must manually type findTestObject(...) instead of leveraging the Object Repository.
Regards,
Amy James
PerYourHealth
agree, I think it is a bug, because I usually use this feature on my work
Even my older version of KS does not “allow” to drag-n-drop to the script mode if you are on a Keyword class. When you drag-n-drop from the Object Repository to a Keyword class file, you will see a “forbidden” symbol (looks like a circle with an X in it). However, if you release your mouse, the drag-n-drop does eventually display in the Keyword class file (after about 10 seconds). Is this the situation you have or are you on a Test Case class?
Personally, I’m not sure why Katalon would “prevent” drag-n-drop from the Object Repository at any time.