Calling objects directly vs returning objects in a function
Another person and I were hired to do scripting in test complete. How they have it set up is that all the objects are being returned in libraries as function calls example:
So we create a project of just libraries and we import those libraries into our projects. And when we want to call those objects in a script we say:
Should we be using objects this way or should we just be calling them directly from the mapping? This way gives us better object manipulation if the object is a string we can just put a cast in our function to always have a object return a certin data type. Or we can maniplulate the object how we want. What is the best way to go about this?
Re: Calling objects directly vs returning objects in a function
If your Aliases are changing that much then you aren't really using mapping properly. Your namemapping file should be designed in such a way that your Aliases are only the main parts of the UI you interact with and shortened as mush as possible. The mapping is where the shuffling should be occuring, not the Aliases.
Click the Accept as Solution button if my answer has helped