Reputation: 70
Is there any way to do descriptive programming in testcomplete? In my current project I use NameMapping, But I want to switch to descriptive programming so that I can move object definitions from NameMapping to an external file.
Upvotes: 1
Views: 1932
Reputation: 11
To Achieve this,
In both of the above cases, if you are using excel to store the object definitions, retrieve as string values and convert it to object using eval function.
Upvotes: 0
Reputation: 3908
Since TestComplete does not provide such built-in functionality, you need to implement it yourself. Create a script function (you can create a script extension for this) that will return an object by your custom name. This function will read the content of the external file with object definitions, search for the needed object within the object tree and return the found object.
Upvotes: 2