I’m new to Katalon. I’ve recorded a test case, and I am editing it to make it easier to use to test multiple environments. I have created a profile for one of the environments to test against, and created global variables for the test case to use. For simple variables, like a user’s first name, I created a string variable, and that’s easy to select for input in the test case.
I also created a mapped object called taxable address that represents a shipping address (i.e. street, state, zipcode, etc.) But for the global mapped variable, I can’t select any of the mapped properties - only the object name (taxable address) itself.
I have searched for a while but can’t find a example of using global mapped variables in a test case. How do I reference the mapped properties in the test case UI input?
That worked perfect for me. I also saw that instead of mapping to a local variable I could access the GlobalVariable object :
GlobalVariable.TaxAddress[‘Street’]
Thanks again!
Yep, that’s fine too. There are purists (the syntax police) that will insist that one way is better than another but once you’ve found a pattern that works, my advice is stick to it. If it causes an issue later, find a better one.