LAB
9 years agoContributor
Start a service in keyword test
I've seen the code for jscript and vb, I tried pasting the jscript version into a script and referencing that via "Run Script Routine", entering computer and service name...
When testcomplete tries to execute this section, I get the following error.
Error
Invalid number of parameters.
Error location:
Unit: "ProjectSuite\Project\Script\Unit2"
Line: 62 Column: 16.
Invalid number of parameters.
Error location:
Unit: "ProjectSuite\Project\Script\Unit2"
Line: 62 Column: 16.
which references this section of the script-
wmiService = GetObject("WinMgmts:{impersonationLevel=impersonate}!\\\\" +
computerName + "\\root\\cimv2");
I noticed on the help page it mentions I need to set WMI security permissions, and I did set those permissions as well. Do I need to change anything in this section? Tried changing computerName to my actual computer name but no dice