10

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!

Mate Mrše
  • 6,305
  • 6
  • 26
  • 53
Ponns
  • 159
  • 1
  • 4
  • 15

5 Answers5

7

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.

Chris Smith
  • 97
  • 1
  • 4
5

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.

Tony Bui
  • 790
  • 4
  • 7
  • 2
    May I know the reason why you want to export the scripts? It is good to use all with Katalon studio then. – Tony Bui Sep 18 '17 at 03:44
  • 1
    Because I would like to have more control over the code; I'm using spring/cucumber/JUnit framework for my testing automation. I would like to export the recorded session like what slenium does; so that I can customize the code as I wanted to be more maintainable. – Ponns Sep 18 '17 at 15:29
  • 2
    I got your point now. I think if you are using Spring, Cucumer and Junit, then POM will fit with your setup and Selenium IDE is not very useful. – Tony Bui Sep 18 '17 at 16:54
2

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.

ssbh
  • 101
  • 1
  • 3
2

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 !

HA S
  • 645
  • 9
  • 7
1

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

kishor sharma
  • 195
  • 1
  • 13