Learn how to use Katalon Studio for robotic process automation, with step-by-step examples for batch file processing, moving data between APIs, loading data from Excel, and extracting data from web pages on a schedule.

What Is RPA?
Robotic process automation (RPA) is a software system automation approach that employs pre-programmed “bots” to automate manual tasks, typically through a user interface (UI). RPA tools are primarily used to automate business processes that once depended on human resources and were highly repetitive and operational in nature.
Many of these business processes are rooted in legacy technology, which often acts as a bottleneck due to its outdated nature. As such, RPA is frequently applied on top of these legacy systems to streamline operations and reduce dependencies.
What Are the Benefits of Adopting RPA?
RPA offers several benefits to organizations that adopt it, including:
- Increased efficiency: RPA not only automates repetitive and time-consuming tasks but also significantly improves the employee experience. With the aid of bots handling mundane activities, employees no longer have to "copy/paste" or "swivel seat" between different applications. This enables them to channel their efforts into more complex and value-added work, leading to heightened efficiency, productivity, and cost savings.
- Enhanced precision: RPA excels in executing mundane tasks that, due to their tedious nature, may lead even the most diligent individuals to commit errors. By handling these repetitive activities, RPA ensures a high level of accuracy and consistency, minimizing the need for rework. This precision is vital in sectors like healthcare and finance, where seemingly minor mistakes can have substantial repercussions.
- Enhanced customer experience: RPA can help organizations deliver a better customer experience by automating processes such as customer onboarding and support. This can lead to faster response times, more personalized interactions, and improved customer satisfaction.
- Scalability: RPA can be easily scaled up or down depending on business needs. This makes it a flexible solution that can adapt to changing requirements and growth.
- Data analytics: RPA can help organizations collect and analyze large amounts of data, providing insights into customer behavior, market trends, and operational efficiency. This can help businesses make more informed decisions and stay ahead of the competition.
How Can Katalon Support RPA?
Katalon is primarily known as a test automation platform for web, mobile, desktop, and API testing. However, Katalon Studio also offers features that can be used for robotic process automation purposes.
Katalon Studio provides a feature called "Record Web" which allows users to record their actions on a web application and generate a script that can be replayed later. This feature is useful in automating repetitive tasks such as filling out forms, clicking buttons, navigating through web pages, or interacting between apps.
Here are some Katalon use cases that apply RPA:
Use Case: Large-Scale Repetitive File Manipulation, Extraction, and Uploading
You can use Katalon Studio as an RPA tool to automate file manipulation, extraction, and uploading processes with a click of a button as a batch process by following these steps:
1. Open Katalon Studio and create a new test suite.
2. Add a test case for file manipulation, extraction, and uploading.
3. Create a new Test Suite Collection by navigating to File > New > Test Suite Collection.
4. Add the test suite you created in step 1 to the Test Suite Collection.
- Set the Test Suite Collection's execution mode to Sequential or Parallel, depending on whether the files must be processed in order.
6. Save your Test Suite Collection.
7. Now you can run your Test Suite Collection by clicking the "Run" button in Katalon Studio. This will execute your test suite and automate the file manipulation, extraction, and uploading processes.
- To run this as a one-click batch process, call the Test Suite Collection from a shell script or batch file using the Katalon command-line interface (Katalon Runtime Engine):
katalonc -noSplash -runMode=console -projectPath="/path/to/project" -testSuiteCollectionPath="Test Suites/FileProcessingCollection" -apiKey="<your-api-key>"- Schedule the script with your operating system's scheduler or a CI/CD tool such as Jenkins so it runs automatically.
A Word About RPA Bots
Orchestrated Bots are designed to be event-driven. They spring into action when triggered by specific activities, such as an incoming email to a customer service shared inbox. Once activated, they handle their set tasks and await their next trigger.
On the other hand, Attended Bots operate directly on workstations and require human initiation. Employees can trigger these bots to manage mundane tasks. Upon completion, control is reverted to the human user, enabling them to proceed with more complex or nuanced process parts.
By understanding these bot types, you can use Katalon Studio as an RPA tool more effectively, automating file manipulation, extraction, and uploading as a one-click batch process. Choose the right bot type for your use case to maximize efficiency.
Use Case: API Call Automation Between Applications
There are commercial solutions that charge customers to use their APIs at scale. It becomes a really expensive affair to buy these tools to interface with those solutions. Although these solutions have their API exposed, it’s difficult to automate a process without an RPA tool, and these tools are expensive as well. Using Katalon and CI/CD tools like Jenkins, you can make the process of extracting information from an API and storing information into a third-party tool pretty effective.
Simply follow these steps:
- In Katalon Studio, create a RESTful request object named "Get Users" under Object Repository > API, with the method set to GET and the URL set to
https://reqres.in/api/users. - Create a second request object named "Create User" with the method set to POST, the same URL, and a JSON body that uses variables:
{"name": "${name}", "job": "${job}"}. Definenameandjobin the request's Variables tab. - Create a new test case named "API Get and Post" and add this script:
import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject
import com.kms.katalon.core.testobject.ResponseObject
import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS
import groovy.json.JsonSlurper
// GET data from the source application
ResponseObject getResponse = WS.sendRequest(findTestObject('API/Get Users'))
WS.verifyResponseStatusCode(getResponse, 200)
def users = new JsonSlurper().parseText(getResponse.getResponseBodyContent()).data
// POST each record to the target application
users.each { user ->
ResponseObject postResponse = WS.sendRequest(findTestObject('API/Create User', [
('name'): "${user.first_name} ${user.last_name}".toString(),
('job') : 'Automation Engineer'
]))
WS.verifyResponseStatusCode(postResponse, 201)
}- Run the test case, or add it to a test suite and run it on a schedule with Katalon Runtime Engine and a CI/CD tool such as Jenkins.
By following these steps, you can use Katalon Studio to automate API Get and POST responses as part of an RPA process.
Use Case: Parsing Large Excel Files and Data Mapping
To perform data loading at scale using Katalon as an RPA solution, you can use Katalon's built-in data-driven testing feature. This allows you to easily execute the same automation multiple times with different sets of data.
Here are the steps to perform data loading at scale using Katalon:
- In Katalon Studio, go to File > New > Test Data, choose Excel File as the data type, and point it to your workbook and sheet. Name it "CustomerRecords".
- Create a new test case and name it "Data Loading".
- Read each row of the data file and run your loading logic:
import static com.kms.katalon.core.testdata.TestDataFactory.findTestData
import com.kms.katalon.core.testdata.TestData
TestData data = findTestData('Data Files/CustomerRecords')
for (int row = 1; row <= data.getRowNumbers(); row++) {
String column1Value = data.getValue('Column1', row)
String column2Value = data.getValue('Column2', row)
String column3Value = data.getValue('Column3', row)
// Add code here to perform the data loading, such as an API call or database insert
}- Alternatively, let Katalon iterate for you: add the test case to a test suite, open the test suite's Data Binding section, add the data file, and map its columns to test case variables. The test case then runs once per row.
- Run the test suite locally, or from the command line with Katalon Runtime Engine for scheduled, large-scale loads.
By following these steps, you can use Katalon Studio to automate data loading at scale as part of an RPA solution.
The data-driven testing feature allows you to easily execute the same test case or test suite with different sets of data, without the need to manually modify the test case each time.
Use Case: Data Extraction
Data extraction is a common task in RPA and can be easily performed using Katalon Studio. Here are the steps to perform data extraction with Katalon as an RPA process:
- Create a new test case in Katalon Studio and add it to a test suite named "Data Extraction".
- Add this script to open the page and extract the data:
import org.openqa.selenium.By
import org.openqa.selenium.WebDriver
import org.openqa.selenium.WebElement
import com.kms.katalon.core.webui.driver.DriverFactory
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI
String url = 'https://www.example.com'
WebUI.openBrowser('')
WebUI.navigateToUrl(url)
WebDriver driver = DriverFactory.getWebDriver()
List<WebElement> elements = driver.findElements(By.xpath("//div[@class='data-container']"))
for (WebElement element : elements) {
String data = element.getText()
// Add code here to save or process the extracted data
}
WebUI.closeBrowser()- Add the code to save or process the extracted data, such as writing it to a file or database.
- To run it as an unattended RPA job, call the Katalon command-line interface (Katalon Runtime Engine) from a shell script or batch file:
katalonc -noSplash -runMode=console -projectPath="/path/to/project" -testSuitePath="Test Suites/Data Extraction" -executionProfile="default" -browserType="Chrome" -apiKey="<your-api-key>"This command will execute the "Data Extraction" test suite in the specified project, using the default execution profile and the Chrome browser.
By following these steps, you can use Katalon Studio to automate data extraction as part of an RPA process. The WebDriver API provides a complete set of tools for locating and extracting data from web pages, and Katalon's integration with WebDriver makes it easy to use these tools in your RPA workflows.
Conclusion
In summary, several use cases can be accomplished with Katalon as an RPA solution. Notably, the synergy of a library of tests can be tapped into for production automation. Equally, various production automation artifacts can be retrofitted for testing purposes, demonstrating the platform's flexibility.
A significant advantage lies in the shared skill sets within Katalon. Teams can transition smoothly between tasks, enhancing efficiency. When combined with Katalon's support for automation frameworks, command-line interfaces, and CI/CD tools, it's evident that the platform delivers flexibility catering to a broad spectrum of use cases:
- File manipulation, extraction, and uploading: Katalon can be used to automate file manipulation tasks such as renaming, moving, copying, and deleting files, as well as extracting data from files and uploading them to web applications.
- API testing: Katalon can be used to automate API testing tasks, including sending GET and POST requests, parsing responses, and verifying API functionality.
- Data loading: Katalon can automate the process of loading data into a database or other system, including tasks such as data transformation, data validation, and error handling.
- Data extraction: Katalon can extract data from web pages or other sources, including tasks such as locating HTML elements, parsing text, and saving or processing the extracted data.
These tasks can be performed at scale using Katalon's support for automation frameworks, command-line interfaces, and CI/CD tools. With these features and integrations, Katalon provides a flexible and reliable RPA option for a wide range of use cases.
Frequently asked questions
Katalon automates repetitive UI-driven tasks using features like Record Web, custom keywords, batch mode execution, data-driven testing, and integrated API and file workflows.
RPA increases efficiency, improves accuracy in repetitive tasks, enhances customer experience, scales easily with business needs, and supports better data analytics.
Orchestrated bots run based on triggers such as incoming emails, while attended bots require human initiation and run directly on user workstations.
Examples include large-scale file manipulation and uploads, automated API GET/POST data exchange, Excel-based bulk data loading, and structured data extraction from web pages.
Katalon’s data-driven testing allows automated processing of spreadsheets, repetitive execution of tasks for each data row, and integration with APIs or databases for scalable workflows.

Test everything. Ship with confidence.
From generating test cases to spotting failures, Katalon's AI works across your entire pipeline, automatically.





