Katalon - export registered test script in java / junit

Is it possible to export the recorded test script in Java / JUuit (similar to slenium IDE) to Katalon studio? Since the application I'm working on is only compatible with IE; so I could not use the Selenuim IDE. therefore I am forced to find other tools for playing / recording sessions.

Rate your help in advance! Thanks!

+8
source share
5 answers

Starting from version 4.8. Katalon Studio does not support export test cases for other frameworks. But if you want more control over your project, you can change the test case directive in Script mode using Groovy / Java . It is also possible to import third-party Java libraries into your project if necessary.

+8
source

After creating a test case with some steps, we could look at the script and configure it, for example: https://docs.katalon.com/display/KD/Test+Case+Script+View p>

From here we could add additional codes to process our test threads.

However, since some Katalon libraries are used in the code, you may not be able to copy the script and run somewhere else.

+5
source

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

+2
source

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

Download the chrome plugin

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

Follow the onscreen instructions

enter image description here

enter image description here

enter image description here

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

Done!

+2
source

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

  • WITH#
  • Java
  • Python
  • Robot framework
  • ruby

This is an extension for chrome, as Selenium IDE you can find it here

+1
source

Source: https://habr.com/ru/post/1271891/


All Articles