# Is there any way to replace an Object Attribute from a value set in an excel sheet during runtime

**URL:** <https://forum.katalon.com/t/is-there-any-way-to-replace-an-object-attribute-from-a-value-set-in-an-excel-sheet-during-runtime/55317>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [May 31, 2021, 3:38pm UTC](https://forum.katalon.com/t/is-there-any-way-to-replace-an-object-attribute-from-a-value-set-in-an-excel-sheet-during-runtime/55317 "2021-05-31T15:38:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![joel.hurtado](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/joel.hurtado/32/16103_2.png) [@joel.hurtado](https://forum.katalon.com/u/joel.hurtado)\
**Post date:** [May 31, 2021, 3:38pm UTC](https://forum.katalon.com/t/is-there-any-way-to-replace-an-object-attribute-from-a-value-set-in-an-excel-sheet-during-runtime/55317/1 "2021-05-31T15:38:58Z")

</div>

Hi everyone. Is there any way to replace an object attribute with a value from an excel sheet during runtime?

I have an iframe object and want it to use it in different environments and it works by changing an attribute value but now I have to make it change by taking the value from the excel sheet. It is possible?

I would appreciate some help 🙂

---

<div class="post-metadata">

**Author:** ![ThanhTo](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/thanhto/32/697_2.png) [@ThanhTo](https://forum.katalon.com/u/ThanhTo)\
**Post date:** [May 31, 2021, 3:57pm UTC](https://forum.katalon.com/t/is-there-any-way-to-replace-an-object-attribute-from-a-value-set-in-an-excel-sheet-during-runtime/55317/2 "2021-05-31T15:57:12Z")

</div>

Hi there it’s possible to pass in a value from an excel sheet into your Test Object through parameterization and data-driven execution. Here are some docs to get you started.

> **[Parameterize Web Test Objects](https://docs.katalon.com/katalon-studio/docs/parameterize-web-objects.html#parameterize-web-test-objects-and-their-properties)**
>
> Parameterize Web Test Objects and their properties With parameterizing test objects, you can update test objects' locators dynamically by using either local or global variables. This feature comes in handy...

Once you have parameterized the objects the next step is to take a look at data-driven execution.

> **[Data-driven Testing with Katalon Studio](https://docs.katalon.com/katalon-studio/docs/ddt.html)**
>
> Katalon Studio supports data-driven testing with several methods that allow test scripts to read inputs from internal or external data files. Particularly, in Katalon test cases, test objects or their...

In particular the sample project

> **[Shopping Cart Sample Project](https://docs.katalon.com/katalon-studio/docs/shopping-cart-prj.html#profiles)**
>
> Shopping Cart sample project is available here. Profiles In the default profile, you can create and save all global variables. They can be used across Test Cases in your project....

---

<div class="post-metadata">

**Author:** ![joel.hurtado](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/joel.hurtado/32/16103_2.png) [@joel.hurtado](https://forum.katalon.com/u/joel.hurtado)\
**Post date:** [May 31, 2021, 7:44pm UTC](https://forum.katalon.com/t/is-there-any-way-to-replace-an-object-attribute-from-a-value-set-in-an-excel-sheet-during-runtime/55317/3 "2021-05-31T19:44:26Z")

</div>

@ThanhTo Thank you so much!! you saved my day. I was able to do it by using the parameterizing test objects and global variables.
