# Data verification issue in keywords

**URL:** <https://forum.katalon.com/t/data-verification-issue-in-keywords/127846>\
**Category:** Web Testing\
**Tags:** web-testing\
**Created:** [April 12, 2024, 2:50pm UTC](https://forum.katalon.com/t/data-verification-issue-in-keywords/127846 "2024-04-12T14:50:53Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mqamar](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/mqamar/32/16104_2.png) [@mqamar](https://forum.katalon.com/u/mqamar)\
**Post date:** [April 12, 2024, 2:50pm UTC](https://forum.katalon.com/t/data-verification-issue-in-keywords/127846/1 "2024-04-12T14:50:53Z")

</div>

Hi,  
I have a Modal dialogue that I open at different times from different test cases. Each time I like to verify  
same data on the dialog before moving to next step in the test case. Because the verification of the data is same in all test cases I decided the move the verification to keyword.

Problem is when I do verification from the test case, console output will show that verification was done but if I move the verification to Keyword, nothing is displayed under Console Output, it only shows the keyword call that we make from the test case.

**If Verification is inside the test case, console out shows the following:**

2024-04-12 09:53:49.265 DEBUG testcase.2\_Merge - 10: verifyElementText(findTestObject(“ABC/Modals/Merge/h3\_merge\_header”), “Hello World”)  
2024-04-12 09:53:49.265 DEBUG testcase.2\_Merge - 13: verifyElementChecked(findTestObject(“ABC/Modals/input\_checkbox\_Name”), 60)  
2024-04-12 09:53:50.300 DEBUG testcase.2\_Merge - 14: verifyElementNotChecked(findTestObject(“ABC/Modals/input\_checkbox\_Age”), 60)  
2024-04-12 09:53:51.761 DEBUG testcase.2\_Merge - 15: verifyElementNotChecked(findTestObject(“ABC/Modals/input\_checkbox\_Place”), 60)

**If the same code of verification is inside the keyword then the console out shows the following:**

2024-04-12 09:53:49.265 DEBUG testcase.2\_Merge - 9: com.Pages.ABC.VerifyDataonMergeModal()

2024-04-12 10:31:13.600 INFO k.k.c.m.CustomKeywordDelegatingMetaClass - com.Pages.ABC.VerifyDataonMergeModal is PASSED

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Russ\_Thomas](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/russ_thomas/32/11884_2.png) [@Russ\_Thomas](https://forum.katalon.com/u/Russ_Thomas)\
**Post date:** [April 12, 2024, 6:17pm UTC](https://forum.katalon.com/t/data-verification-issue-in-keywords/127846/2 "2024-04-12T18:17:45Z")

</div>

Did you read this?

> [@\[TIP\] How To Help Us Help You!](http://forum.katalon.com/t/tip-how-to-help-us-help-you/12919):
>
> My test is BROKEN! NOTHING WORKS! HELP ME! Relax. We get it. We really do. There are some pretty smart and clever people on this forum, but you must realize, they are not magicians or wizards or gods. They cannot see your code, they can’t see your errors and they don’t even know what your AUT is meant to do even though it might seem perfectly obvious to you. So please relax and follow the advice below, before you start writing your post. The advice below will tell you the exact information …

We need to see the code you’re working with. Make sure you highlight the code that is NOT working. And show us your custom keywords and how you are including them in your Test case.

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/katalon/original/3X/d/5/d55596ab02785a255798e87ede769734747b30c4.svg) [@system](https://forum.katalon.com/u/system)\
**Post date:** [April 12, 2024, 6:17pm UTC](https://forum.katalon.com/t/data-verification-issue-in-keywords/127846/3 "2024-04-12T18:17:45Z")

</div>

Hi there,

Thank you very much for your topic. Please note that it may take a little while before a member of our community or from Katalon team responds to you.

In the meantime, please also check out our posting guide below to see if you may need to add any extra info in your topic to **help us help you better** 👇

> [@\[TIP\] How To Help Us Help You!](http://forum.katalon.com/t/tip-how-to-help-us-help-you/12919):
>
> My test is BROKEN! NOTHING WORKS! HELP ME! Relax. We get it. We really do. There are some pretty smart and clever people on this forum, but you must realize, they are not magicians or wizards or gods. They cannot see your code, they can’t see your errors and they don’t even know what your AUT is meant to do even though it might seem perfectly obvious to you. So please relax and follow the advice below, before you start writing your post. The advice below will tell you the exact information …

Thanks! 🕶

---

<div class="post-metadata">

**Author:** ![grylion54](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/grylion54/32/16265_2.png) [@grylion54](https://forum.katalon.com/u/grylion54)\
**Post date:** [April 12, 2024, 6:21pm UTC](https://forum.katalon.com/t/data-verification-issue-in-keywords/127846/4 "2024-04-12T18:21:12Z")

</div>

If all you are looking for is a log of your verification, then change your Keyword to a “callTestCase” instead. A called Test Case leaves a log, whereas a Keyword does not.

---

<div class="post-metadata">

**Author:** ![Russ\_Thomas](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/russ_thomas/32/11884_2.png) [@Russ\_Thomas](https://forum.katalon.com/u/Russ_Thomas)\
**Post date:** [April 12, 2024, 6:22pm UTC](https://forum.katalon.com/t/data-verification-issue-in-keywords/127846/6 "2024-04-12T18:22:39Z")

</div>

> [@grylion54](#):
>
> A called Test Case leaves a log, whereas a Keyword does not

Depends how it is used.

---

<div class="post-metadata">

**Author:** ![albert.vu](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/albert.vu/32/20595_2.png) [@albert.vu](https://forum.katalon.com/u/albert.vu)\
**Post date:** [April 13, 2024, 8:14am UTC](https://forum.katalon.com/t/data-verification-issue-in-keywords/127846/8 "2024-04-13T08:14:51Z")

</div>

Split this topic on April 13, 2024, 8:14am UTC

A post was split to a new topic: [Why am I seeing automated response from “system”?](https://forum.katalon.com/t/why-am-i-seeing-automated-response-from-system/127898)

---

<div class="post-metadata">

**Author:** ![mqamar](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/mqamar/32/16104_2.png) [@mqamar](https://forum.katalon.com/u/mqamar)\
**Post date:** [April 12, 2024, 7:58pm UTC](https://forum.katalon.com/t/data-verification-issue-in-keywords/127846/10 "2024-04-12T19:58:40Z")

</div>

Hi,  
Thank you for the response. If I do the verification within the test case or inside another testcase and then “callTestCase”, I do see the logs.

Here’s my keyword:

@Keyword  
public VerifyDataonMergeModal()  
{

```
	WebUI.verifyElementChecked(findTestObject('ABC/Modals/input_checkbox_Name'), 60)
	WebUI.verifyElementNotChecked(findTestObject('ABC/Modals/input_checkbox_Age'), 60)
	WebUI.verifyElementNotChecked(findTestObject('ABC/Modals/input_checkbox_Place'), 60)

}

```
