Forum Discussion

Philip_Baird's avatar
Philip_Baird
Community Expert
12 years ago

Test Complete startup log, Script Extension intellisense not working


Hi, I have created a RuntimeObject Script Extension that loads and appears in Test Complete for which I can call the Methods and set the Properties.


 


The trouble I have is that the Object appears in the intellisense but the Methods and Properties DO NOT.


 


I find this strange because as I mentioned earlier, the Script Units can quite happily access them from code.


 


Is there a startup log of some description I can look at to identify the problem?


Is there something else I can look at?


 


I have recreated the *.tcx *.js and Description.xml files numerous times as well as restarting my machine but it does not work.


 


Incidently, the intellisense for every other Script Extension I have written works fine.


 


Regards,


Phil Baird

2 Replies

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor
    It sounds like a problem with the XML file used for doing that part of the mapping.  I had that problem once before and (here's where my 41 year old memory fails me... I'm getting old) it had to do with the file format of the XML file... ANSI vs. Unicode or some such thing like that.
  • Philip_Baird's avatar
    Philip_Baird
    Community Expert
    I finally got time to figure out what went wrong.

     


    In the Description.xml file I had the following definition


     


    <Property Name="LogBuildProcess" GetRoutine="get_LogBuildProcess" SetRoutine="set_LogBuildProcess">


     


    where the GetRoutine and SetRoutine access a Var


    var LogBuildProcess = true;


     


    I also had the following function


     


    function logBuildProcess( message ) {}


     


    This all worked fine when executing but the intellisence was not displaying correctly.

    When I renamed function logBuildProcess(){} to function logBuildProcessX(){} the intellisense started displaying correctly so there is obviously a name clash between having a function with the same name as a defined Property.


     


    Regards,


    Phil Baird