Showing results for 
Search instead for 
Did you mean: 

Utils.CreateStubObject inside a Script Extension


Utils.CreateStubObject inside a Script Extension



I want to create a function in a script extension that will return an object, but under certain conditions, it will just not be able to return it, and I wanted it to return something like Utils.CreateStubObject which has the Exists property.


I am having issues doing this, and I think that Utils is not available in the ScriptExtensions. Is that correct?


If so, could it be made available? Or do you have any suggestion on a different solution?



Frequent Contributor

Re: Utils.CreateStubObject inside a Script Extension

Check out this link for objects available to script extensions. Utils is not on the list. I don't know how you could or can even achieve your goal. Maybe someone else does.


To make feature requests for TestComplete, go to


Good luck!

New Here?
Join us and watch the welcome video:
Building with the Collaborator API

Help Documenation
The Collaborator API is a JSON-RPC API that lets you integrate with Collaborator 9.0 and above. For more information about how the API works, check out the API description here:

Sample Plugins
For an example of an add-in that uses the API, take a look at the Microsoft Word Add-in for Collaborator:

We list all the great plugins our network has already built on this page on the SmartBear website.