DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

The software you build is only as secure as the code that powers it. Learn how malicious code creeps into your software supply chain.

Apache Cassandra combines the benefits of major NoSQL databases to support data management needs not covered by traditional RDBMS vendors.

Generative AI has transformed nearly every industry. How can you leverage GenAI to improve your productivity and efficiency?

Modernize your data layer. Learn how to design cloud-native database architectures to meet the evolving demands of AI and GenAI workloads.

Related

  • Exploring Intercooler.js: Simplify AJAX With HTML Attributes
  • Building an AI/ML Data Lake With Apache Iceberg
  • Beyond Simple Responses: Building Truly Conversational LLM Chatbots
  • The Full-Stack Developer's Blind Spot: Why Data Cleansing Shouldn't Be an Afterthought

Trending

  • Blue Skies Ahead: An AI Case Study on LLM Use for a Graph Theory Related Application
  • Ethical AI in Agile
  • The Full-Stack Developer's Blind Spot: Why Data Cleansing Shouldn't Be an Afterthought
  • Performing and Managing Incremental Backups Using pg_basebackup in PostgreSQL 17
  1. DZone
  2. Data Engineering
  3. Data
  4. Common Validation Statements With Katalon Studio

Common Validation Statements With Katalon Studio

In this tutorial, learn how to use the two methods of validation supported by Katalon Studio: captured objects, and checkpoints.

By 
Oliver Howard user avatar
Oliver Howard
·
Oct. 22, 17 · Tutorial
Likes (5)
Comment
Save
Tweet
Share
15.5K Views

Join the DZone community and get the full member experience.

Join For Free

Katalon Studio supports two methods to validate. One is using built-in keywords to verify the states of certain test objects. Another is to use checkpoints to verify a specific data set against a previously captured data set. This tutorial explains how to make use of these methods when designing your automation test.

Validation With Captured Objects

All Katalon Studio built-in keywords used for validating will have a prefix “Verify…” For example, in order to check whether a certain control presents on the page, Katalon uses the Verify Element Present keyword.

On the test case editor, you can add a validation keyword to validate a captured object. Follow these steps to add a validation point to your Katalon Test case:

From the Manual view, add a new keyword for your test case.

Katalon Studio Web UI Keyword

When the new keyword is added, scroll down to see all available Verify keywords and select a suitable one.

Katalon Studio Verify Keyword

Specify a test object for the validation. The following dialog appears to allow selecting a relevant element.

Test Object Input Dialog

Your validation point with Verify Element Present keyword will look similar to the following example:

Verify Element Present Katalon Studio

Validation With Checkpoints

If you want to verify whether a data set is still the same, you can use checkpoints.

First, you need to create a checkpoint instance. Refer to Manage Checkpoint for more details.

Katalon Studio supports many types of data sources for checkpoints, such as Excel, CSV, Database, and checkpoint description.

Then, you can use the Verify Checkpoint keyword to validate the state of the data. This keyword verifies if the data of a checkpoint matches its source data. The keyword’s parameters, returns, and usage are described as follows:

Parameters

  • checkpoint – Checkpoint (required): Specifies the input checkpoint.
  • logChangedValues – boolean (required): Specifies whether changed values between the checkpoint data and the source will be logged.
  • flowControl – FailureHandling (optional): Specifies failure handling schema to determine whether the execution should be allowed to continue or stop. More details can be found in failure handling.

Returns

  • true: If the data of checkpoint matches its source data.
  • false: If the data of checkpoint does not match its source data.

The following example provides a manual specification and script to verify the checkpoint:

The following example will demonstrate how to add Verify Checkpoint keyword in Manual and Script mode. When users want to validate the current state of data, verify checkpoint keyword will come in handy to compare it with a snapshot of original data source taken at a certain state.

Manual Mode:

automation test Katalon Studio

Script Mode:

import static com.kms.katalon.core.checkpoint.CheckpointFactory.findCheckpoint

'Use WebUI keyword'

WebUI.verifyCheckpoint(findCheckpoint('Checkpoints/chk_DataSnapshot'), false)

'Use Mobile keyword'

Mobile.verifyCheckpoint(findCheckpoint('Checkpoints/chk_DataSnapshot'), false)

'Use Web Service keyword'

WS.verifyCheckpoint(findCheckpoint('Checkpoints/chk_DataSnapshot'), false)

Now you have been introduced to two methods for validation in Katalon Studio, each with its own purpose. You can use them when composing test scripts to verify data.

Katalon Studio Checkpoint (pinball) Data (computing)

Opinions expressed by DZone contributors are their own.

Related

  • Exploring Intercooler.js: Simplify AJAX With HTML Attributes
  • Building an AI/ML Data Lake With Apache Iceberg
  • Beyond Simple Responses: Building Truly Conversational LLM Chatbots
  • The Full-Stack Developer's Blind Spot: Why Data Cleansing Shouldn't Be an Afterthought

Partner Resources

×

Comments

The likes didn't load as expected. Please refresh the page and try again.

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends: