Katalon - export recorded test script to java/junit

12.1k views Asked by At

Is there an option to export recorded test script to Java/JUuit(similar to slenium IDE) in Katalon studio? Because the application I'm working on is compatible only with IE; so I couldn't use selenuim IDE. so I'm forced to find someother tools to play/record sessions.

Appreciate your help in advance! Thanks!

6

There are 6 answers

0
Chris Smith On

As of version 4.8 Katalon Studio does not support export test cases to other frameworks. But if you want more control on your project, you can modify test cases directy in the Script Mode using Groovy/Java. It is also possible to import 3rd party Java libraries to your project if need be.

3
Tony Bui On

After creating the test case with some steps, we could view the script and adjusting it, for examples: https://docs.katalon.com/display/KD/Test+Case+Script+View

From here, we could add more codes to handle our testing flows.

However, since the code uses some Katalon libraries, so it might not posible to copy the script and run somewhere else.

0
HA S On

Yes you can export it Java (Junit, TestNg), python, C#, Ruby.

Download the chrome pluging

https://chrome.google.com/webstore/detail/katalon-recorder-selenium/ljdobmomdgdljniojadhoplhkpialdid

Follow the guide screen

enter image description here

enter image description here

enter image description here

Create a Maven Java project, create a new Test class file and copy paste the code and run the project to test the browser test.

Done !

1
Nancy M On

Selenium Webdriver is what would be needed, not Selenium IDE.

0
ssbh On

you can export code into java/ python using Katalon browser plugin. Just import existing test case recording into the plugin and click on "export" option.

0
kishor sharma On

You can record your test and export in the following language and framework:

  • C#
  • Java
  • Python
  • Robot Framework
  • Ruby

It is an extension for chrome like Selenium IDE you can find it here