Katalon Test Data approach

Hello SMEs,

Currently we already have created scripts in Katalon around 200+ and we used hard-coded test data credentials on each EPIC test cases e.g. log in, etc…
I would like to know if which more convenient to use in terms of regression

  1. Hard coded data or
  2. Test Data excel file (this will burn another effort to do so).

Appreciate your feedback.

Thanks,
Ryan

My personal opinion? Never hardcode…if you do, do so in a module you call. I’m all about re-usability and dynamic values.

Test data all the way. It might feel like alot of effort to do so but trust me it will be worth it in the long run. Now i dont know what kind of product your testing or the lenghts in which you have to test the product, but for me personally, its made the process much more efficent. Especially if you have multiple tests doing the same thing just with different sets of data casusing different results its a no brainer.

Now you probs dont need this link but ill attatch it anyways :wink:
https://docs.katalon.com/katalon-studio/tutorials/data_driven_testing.html#what-is-data-driven-testing

Thank you for your feedbacks. I will implement using the excel file approach.

My second question about this test data approach, When I tried using the test data file in the test case for example,

  1. I tried using the input, then Value Type “Test Data Value” and Value (from Excel) – see attached screenshot Using%20Input
  2. Using Variables →

What is the difference between this two approach?

  1. Also in the test suite, I noticed there is a Data Binding Feature - do you know what is the purpose of this?

Hi Ryan,

You can refer the link below. A documentation on how to bind your test data
https://docs.katalon.com/katalon-studio/tutorials/data_driven_testing.html

Hope that helps. . . :slight_smile:

Hi @ryan.h.b.collado

Please read the link that me and Arnel have provided. Data binding will allow you to run the different sets of data in the suite. It explains it all in the doc and gives you steps to follow.

Now the difference between the input and variables is that the variables will allow you to pass through multiple data sets. This will make more sense when you have set up the data binding correctly as the variables are brought through into there.

1 Like