var x = 5, y = 4;
this.Name = "NewObject";
this.multiply = function()
return (x * y );
var obj = new NewObject();
In the last line in the second function, I expect the code editor to present me with the available methods and properties of the NewObject constructor, in this case the method "multiply" and the property "Name".
However code completion is showing nothing after the dot?
Strange behaviour as I would think the code editor has all the required information in order to tell me what are the available properties/methods.
This current behaviour makes it extremely difficult to work with constructs in scripts, as we need to copy paste every property/method used - quite bothersome.
Re: Code Completion doesn\'t show constructor methods
As Jared pointed out, this is not available in TC as such JScript objects are not visible to the TC Code Completion.
If you'd prefer to create objects where you CAN see these kinds of things, you might want to investigate the ODT Classes feature of TestComplete which allows you to define custom classes with methods and properties. Those DO resolve with properties and methods upon instantiating new objects.
Automated Testing Evangelists
Definition expert - noun - Unknown drip under pressure