Forum Discussion

dbattaglia's avatar
dbattaglia
Contributor
6 years ago

Create Property on Test Object

Is there a way to create a property on a test object? Essentially I'm looking for a way to add properties to a test object at runtime.   Example: test_object = Aliases.Object test_object.so...
  • tristaanogre's avatar
    tristaanogre
    6 years ago

    TestComplete adds them... but as part of the object identification engine built into TestComplete and not in any way accessible to the user.  So, generally, no... you cannot alter the property or method list on the objects.

     

    Your best bet is to build a wrapper like you have to translate the object into your particular naming convention... but honestly, to me, that seems like a LOT of work to do to simply to satisfy the asthetic of a particular code formatting standard.