# Data-driven testing approach with Katalon Studio

**URL:** <https://forum.katalon.com/t/data-driven-testing-approach-with-katalon-studio/16604>\
**Category:** Miscellaneous\
**Created:** [January 4, 2019, 8:28am UTC](https://forum.katalon.com/t/data-driven-testing-approach-with-katalon-studio/16604 "2019-01-04T08:28:24Z")\
**Posts on this page:** 8\
**Page:** 1

<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:** [January 4, 2019, 8:28am UTC](https://forum.katalon.com/t/data-driven-testing-approach-with-katalon-studio/16604/1 "2019-01-04T08:28:24Z")

</div>

* * *
This is a companion discussion topic for the original entry at [https://docs.katalon.com/katalon-studio/tutorials/data\_driven\_testing.html](https://docs.katalon.com/katalon-studio/tutorials/data_driven_testing.html)

---

<div class="post-metadata">

**Author:** ![oyvind.mo](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/oyvind.mo/32/3949_2.png) [@oyvind.mo](https://forum.katalon.com/u/oyvind.mo)\
**Post date:** [March 27, 2019, 12:46pm UTC](https://forum.katalon.com/t/data-driven-testing-approach-with-katalon-studio/16604/2 "2019-03-27T12:46:52Z")

</div>

Hi,  
We need to manage data driven url’s as well as field-inputs. As far as I understand, Katalons current abilities are limited to injecting data into fields. Or is there any way to handle URLs in the same way? i.e. we need to run exactly the same test case on different endpoints/urls.  
Thanks in advance for any response.

---

<div class="post-metadata">

**Author:** ![manpreet.mukkar](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/manpreet.mukkar/32/16103_2.png) [@manpreet.mukkar](https://forum.katalon.com/u/manpreet.mukkar)\
**Post date:** [March 27, 2019, 5:29pm UTC](https://forum.katalon.com/t/data-driven-testing-approach-with-katalon-studio/16604/3 "2019-03-27T17:29:39Z")

</div>

If I am understanding correctly you can do something like this :

WebUI.openBrowser(’’)

WebUI.maximizeWindow()

WebUI.navigateToUrl(uscorrecturl)

uscorrecturl is a Variable, You can then bind you data to this variable in the Test Suite Screen and it would run the same test case on the URL’s you binded.

---

<div class="post-metadata">

**Author:** ![oyvind.mo](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/oyvind.mo/32/3949_2.png) [@oyvind.mo](https://forum.katalon.com/u/oyvind.mo)\
**Post date:** [March 28, 2019, 8:41am UTC](https://forum.katalon.com/t/data-driven-testing-approach-with-katalon-studio/16604/4 "2019-03-28T08:41:08Z")

</div>

Thanks Manpreet!  
You are right, that works. I’ve also found that we can use Profiles to store global variables, and activate a profile per line in a Test Suite Collection. This gives us the flexibility we need to vary and control our environments. Thanks again.

---

<div class="post-metadata">

**Author:** ![manpreet.mukkar](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/manpreet.mukkar/32/16103_2.png) [@manpreet.mukkar](https://forum.katalon.com/u/manpreet.mukkar)\
**Post date:** [March 28, 2019, 3:31pm UTC](https://forum.katalon.com/t/data-driven-testing-approach-with-katalon-studio/16604/5 "2019-03-28T15:31:56Z")

</div>

Thats also a possibility too. But I thought you have a scenario where you want to run same test on large number of URL’s . I once had a scenario where I wanted to run a test on large set of pdp pages and I did the same way as mentioned above.

---

<div class="post-metadata">

**Author:** ![omartajine1](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/omartajine1/32/16104_2.png) [@omartajine1](https://forum.katalon.com/u/omartajine1)\
**Post date:** [May 29, 2019, 11:31pm UTC](https://forum.katalon.com/t/data-driven-testing-approach-with-katalon-studio/16604/6 "2019-05-29T23:31:17Z")

</div>

is it posible to compare a table in a web page with an excel file using “Data-driven testing” ?

My problem is that i want to compare a table in a web page with an excel file. The table is generated after applying several filters (select multiple options from the web page and then click on see products).

And all of this process should be automatic, the code must choose the filters and display the products in a table and then compare it with an excel file to see how accurate it is.

The excel file should be compared to the third part of the picture below.

 ![Untitled-2](https://europe1.discourse-cdn.com/katalon/original/2X/5/5af4a42871b9b8987c4b9fb14188422bd23771af.jpeg)

---

<div class="post-metadata">

**Author:** ![Administration.Entwi](https://avatars.discourse-cdn.com/v4/letter/a/7feea3/32.png) [@Administration.Entwi](https://forum.katalon.com/u/Administration.Entwi)\
**Post date:** [June 4, 2019, 8:25am UTC](https://forum.katalon.com/t/data-driven-testing-approach-with-katalon-studio/16604/7 "2019-06-04T08:25:27Z")

</div>

I think, the code fragment in “B. Execute using a test case” is missing:

> …  
> Copy and paste below code:  
> !!! code fragment missing here !!!  
> In which:  
> …

---

<div class="post-metadata">

**Author:** ![charlvdb](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@charlvdb](https://forum.katalon.com/u/charlvdb)\
**Post date:** [June 10, 2019, 12:41pm UTC](https://forum.katalon.com/t/data-driven-testing-approach-with-katalon-studio/16604/8 "2019-06-10T12:41:40Z")

</div>

Where’s the “Copy and paste below code:” ?
