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
- Hard coded data or
- Test Data excel file (this will burn another effort to do so).
Appreciate your feedback.
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
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,
- I tried using the input, then Value Type “Test Data Value” and Value (from Excel) – see attached screenshot
- Using Variables →
What is the difference between this two approach?
- Also in the test suite, I noticed there is a Data Binding Feature - do you know what is the purpose of this?
You can refer the link below. A documentation on how to bind your test data
Hope that helps. . .
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.