Forum Discussion

howie_'s avatar
howie_
Contributor
10 years ago

ScriptExtensions: "'Sys' is undefined" error

Hey everyone, 



When I try to execute part of my ScriptExtensions I get a runtime error that reads "'Sys' is undefined". According to article 54882 this error has two causes:



1. "The script extension refers to a TestComplete object that is not available in script extensions"

2. "The object is provided by a TestExecute plug-in that is not available."



According to article 55368 'Sys' is listed as a "global scripting object available to the script extensions", so it must not be cause #1. I'm using 'Sys' all over the place in my regular scripting, so I'm pretty sure I can rule out cause #2 as well. 



Are there any other causes of this error? Description.xml malformations, or something that it's not telling me? 



Thanks, 

-Howie 

1 Reply

  • HKosova's avatar
    HKosova
    SmartBear Alumni (Retired)
    Hi Howie,



    Is there a function or variable named Sys in the script extension's code or in description.xml? This could cause naming collisions.



    If not, could you please attach your extension here? So that we could see if anything is wrong with it.