Do you think IIT Guwahati certified course can help you in your career?
No
Introduction
Hello Reader!!
In this journey of web testing tools, we are currently focusing on the Katalon studio. We have already learned to create test cases and run them, skip test cases, etc.
Now we will explore another feature of Katalon and learn to create create a customized report plugin. We will also learn to generate a Groovy doc in Katalon.
So, without any further ado, let’s get started!!
Develop a customized report plugin
We will use a sample custom keyword plugin to generate a customized report. This plugin includes a test listener that produces a customized test suite report as a text file in the Reports folder.
Project Structure
The relevant project structure should be similar to the structure given below:
The above structure in Katalon studio looks like this:
Build the Plugin
Open the project as above with Katalon studio.
Inside the root folder, run the command below gradle katalonPluginPackage
After that, the plugin will be located at build/libs/katalon-studio-sample-report-plugin.jar.
Using the generated Plugin
To start using the generated Plugin, copy the above jar file and place it under the Plugins folder of your Katalon project.
And now you are good to go!
Generate a groovy doc for a plugin
In addition to uploading your plugin to the Katalon Store, you can also create documentation in groovydoc and add it to the store.
We will learn to create this documentation in this section.
Add documentation title to build.gradle
Open the project.
Open build.gradle file given at the bottom in the Tests explorer.
3. Update the docTitle. Refer to the example code below:
From the main menu, choose File > New > Keyword. The New Keyword dialog box appears. Enter a name for your keyword and select a package for it. Select OK.
Which language is used in Katalon?
Katalon Studio uses Groovy, a Java-based language, and must load several libraries for parsing test data, test objects, and logging.
How do you create a report in Katalon Studio?
Select your desired format for the reports generated after each test suite execution under Project > Settings > Plugins > Report.
Conclusion
To sum up the article, we learned to Develop a customized report plugin using a custom keyword plugin in Katalon studio. We also learned how to generate a Groovy doc in Katalon.
We hope that this blog has helped you understand the Katalon Studio and its working. To learn more about Katalon and its several features, you can refer to