How to use Python in Katalon Studio


I’ve made a sample project demonstrating the ability to use Python with Katalon Studio. There were some requests for adding Python support to Katalon Studio - I hope this sample will help.


  • Install Python (I’m using Python 2.7).
  • Under the python directory, execute pip install -r requirements.txt to install Python dependencies.
  • Execute Test Suite All.

How it works?

  • Test Cases are still written in Groovy using built-in and custom keywords.
  • Custom keywords make use of the PythonKeywords#runPython(runPython(String script, Object[] keywordArgs) to delegate the implementation to Python scripts in python/modules/
  • The Python WebDriver instance is retrieved using driver = utils.get_driver(allArgs). This instance connects to the Selenium session initialized by Katalon Studio. It will enable mixing Python-based keywords with Groovy-based ones. Also, the capabilities will still be managed by Katalon Studio.
  • Reports, listeners, and integration will behave as usual.

Will Katalon Studio support other scripting languages in the future?
I have automated my testing using Python/Selenium. Can I integrate/call them from Katalon?
Does Katalon support automation test scripts in C# and Python?
Support C# Language
Import Robotframework test script into katalon studio
Programming languages
Would it be possible to write custom keywords using C#?
is katalon studio supports multiple programming lang
Support Python

Nice job. Thank you, Alex.




Thank you for sharing that approach. But shouldn’t Jython make it easier to at least use Python libraries in Katalon Studio? The requirement to install Python first is unfortunately not always possible in a third-party Selenium Grid environment.
I’m not familiar with it yet, but in the docs you’re talking about using Jython in Katalon Studio yourself:
Unfortunately, I can’t find a suitable contribution to this approach anywhere. Could you please give me some hints on first steps?


Hi Alex,
thanks for the demo project - i had tried it but I am lost on where to check the logs and output.
test case Hello world => i could not figure out where the stdout is supposed to go ? logs located under /tmp/ are empty

ls -l /tmp/ks_py_output_2524097923715452990.tmp
-rw-r–r-- 1 vhuteau vhuteau 0 mai 17 15:37 /tmp/ks_py_output_2524097923715452990.tmp

also test case go to google is NOT opening the URL ; i only see firefox window opening and closing

I am running Katalon 6.1.5 on Linux Ubuntu 18.04
could you please help me understand how the python script is executed and where to find the logs of the python ?
thanks a lot


Let me try this next week - I was using Windows.



how to return value to test case?



I would like to know if we integrate Python to Katalon, that’s mean we can write scripts, and execute them with Python, or juste the Custom Keywords will change with Python instead to Groovy?

Thank you