Forum Discussion
tobello
12 years agoContributor
this is getting very frustrating: here is another one from TC:
'Sys' is null or not an object
Error location:
Unit: "Stream_SanityTest_Reporting\Stream_SanityTest_Reporting\Script\UtilityScripts"
Line: 11 Column: 3.
From the function:
'Sys' is null or not an object
Error location:
Unit: "Stream_SanityTest_Reporting\Stream_SanityTest_Reporting\Script\UtilityScripts"
Line: 11 Column: 3.
From the function:
function CloseProcessByName(procName)
{
var proc = Sys.FindChild("ProcessName", procName); // Obtains the process by its name
while (proc.Exists) // Iterates through all the instances of the process until all of them are closed
{
proc.Close(); // close the process
var isProcClosed = p.WaitProperty("Exists", false); // Waits until the process is closed
if (!isProcClosed) // Checks whether the process has been closed successfully
proc.Terminate(); // Terminates the process if not closed
proc = Sys.FindChild("ProcessName", procName); // Obtains another instance of the notepad.exe process
}
}
Any help out there, plz?