How to Add AI-Powered Visual Testing to Robot Framework (with Katalon)

katalon robot framework integration visual testing

Katalon's Robot Framework integration adds AI-powered visual testing to your existing Robot Framework tests. Learn how the testops-robot package uploads baseline and checkpoint images and returns pixel, content, and layout comparison results.

Key takeaways
The 30-second version of this article
Visual bugs like displaced buttons or hidden elements can slip past functional tests and hurt sales and brand image.
Katalon Visual Testing offers three comparison methods: pixel, content (text), and layout.
The testops-robot Python package on PyPI connects Robot Framework to Katalon TestOps for visual comparisons.
Robot Framework tests upload baseline and checkpoint images, and results come back to the Robot Framework run and appear in Katalon TestOps.
Katalon publishes documentation and a public GitHub sample project to help teams get started.
Add Katalon Visual Testing to your Robot Framework Automations

Robot Framework is a popular open-source test automation framework used by many software teams. Katalon’s Robot Framework integration lets those teams tap into Katalon’s AI-powered Visual Testing capabilities to level up their software quality and release readiness.

The Value of Visual Testing

Modern businesses depend on digital experiences for both customers and business users. Modern test automation helps to validate functionality within these digital experiences, but validating the UI and UX continues to be an intense process of:

  • Manually, or through automation, capturing images 
  • Manually, or through partial automation, comparing for differences  

While tedious and time-consuming, failure to include visual testing as part of your quality processes could lead to:

  • Bad first impressions due to variations or broken UI layouts, such as buttons and/or text that are accidentally displaced
  • Loss of sales given limited or no usable UI interactions due to non-visible elements on pages that functional automation tests cannot assert
  • Frustration or anger triggered by improper use of language that somehow slipped through various review rounds, etc.

All of these are actual problems that have impacted businesses in real life, resulting in thousands or millions of dollars in lost revenue, customer dissatisfaction, and negative brand image.

Katalon Visual Testing

Katalon’s Visual Testing solution provides AI-Powered Visual Testing capabilities that allow users to validate software UI in a reliable and automated way with different comparison models to fit the need.

Katalon Visual Testing can perform three distinct types of comparisons to address the specific needs of your UI validations:

  • Pixel Comparison: validates exact matches of the UI.
  • Content Comparison: focuses on the accuracy of text content when that matters most.
  • Layout Comparison: validates that the relative positions of images, objects, and other visual elements haven't shifted in a way that changes the overall appearance of the UI.

Visual Testing is easy to add to existing Katalon Studio tests and we’re extending this ease of use to Robot Framework users with this integration.

Learn more about Katalon’s AI-powered Visual Testing.

Robot Framework and Katalon Visual Testing Integration

Katalon has published a Python-based integration package, testops-robot, on PyPI. The package lets Robot Framework use the Katalon TestOps APIs to upload baseline and checkpoint images and return the results of the visual comparisons.

The image below describes the events flowing between Robot Framework and Katalon TestOps during execution.

Robot Framework and Katalon TestOps.png

Using the integration, users can easily add steps to existing test automations to make calls to Katalon TestOps for initiating visual comparison tests based on uploaded baseline and checkpoint images. Results are passed back to the Robot Framework automation using the integration.

Result in a Robot Framework test:

Result in Robot Framework test.png

Checkpoint images and comparison results can also be viewed in Katalon TestOps.

Visual test result in Katalon TestOps:

Visual Test Result in TestOps .png

Get Started With Visual Testing and Robot Framework

Visual Testing is a key component of modern software quality processes. Making sure business users and customers are seeing and interacting with the UI as it is intended is not always guaranteed through automated testing.

For a complete and up-to-date guide on integrating Robot Framework with Katalon Visual Testing, see the Robot Framework integration documentation.

For a peek at how the integration looks in a project, check out our public example project on GitHub.

Frequently asked questions

Huy Tieu
Huy TieuLead Product Manager

Huy is a Senior Product Manager and AI Advocate at Katalon, with around 10 years of experience in the software services industry. He has held various roles including Business Analyst, Product Owner, Project Manager, and Agile Delivery Manager, and has contributed to a wide range of projects - from startups to large enterprises.

Connect on LinkedIn →
Get started

Test everything. Ship with confidence.

From generating test cases to spotting failures, Katalon's AI works across your entire pipeline, automatically.

Live webinar

The Next Evolution of Manual Testing: Introducing Katalon AI Test Runner

Learn how to grow your QA team's capacity in the age of AI, then watch Katalon AI Test Runner turn manual test cases into automated runs, live.

2:00 to 3:00 PM IST
Almas AhmedSenior Account Manager
Sumit WankhedeSolutions Engineer Manager
Register now