How can I convert the input (object repository) into a variable, in order to be user later in other test cases?

Hello!
Can anyone tell me how I can convert the input into a variable? At object repository section. I want to save the inputs in order to have them for other test cases and not have to write them done manually every time.
Thank you!

Hi,

maybe you could store the variable in a Profile.

you then can use this variable as a GlobalVariable.
Dont forget to add the import to your Script as well.

An example:

import internal.GlobalVariable as GlobalVariable

WebUI.setText(findTestObject(YOUR_TEST_OBJECT), GlobalVariable.eventName)

image

Maybe this is your solution

EDIT:
Forgot to tell you to choose the Profile you created on execution at the top right of the katalon window but i guess you already found that yourself.

1 Like

Thank you so much! it worked!! :heart_eyes: