Fazendo 28 anos de idade

2019 foi um ano horrível: fiquei até agosto desempregado e depois acabei aceitando um trabalho bem abaixo das expectativas que tinha na época em que deixei meu emprego anterior, mas claro, naquela…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Common validation statements with Katalon Studio

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

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:

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

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

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

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

Validation with Checkpoints

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

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

Parameters

Returns

Example

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 the original data source taken at a certain state.

Manual Mode:

Script Mode:

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

'Use WebUI keyword'

'Use Mobile keyword'

'Use Web Service keyword'

Now that 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.

Read more: Top 10 Automation Testing Tools Review

Add a comment

Related posts:

The teachings of Ajahn Chah

The teachings of Ajahn Chah, a Medium series by Duong Chi

Can you afford to go without UX design?

Investing in growth has become inseparable with investing in technology, which is why many companies that provide online products and services have technology as their main focus. But focusing on…