ameett
13 years agoContributor
Handling Microsoft JScript runtime error
Hello,
How to handle Microsoft JScript runtime errors in the scripts?
e.g. following code -
function demo()
{
How to handle Microsoft JScript runtime errors in the scripts?
e.g. following code -
function demo()
{
var a=2
var b=3
d=c+a+b
}
After executing above code I got following error-
An exception occurred in the "Unit3" unit at line 8:
Microsoft JScript runtime error
'c' is undefined
Now the script is paused and is waiting for user Input. On clicking OK button on the message box the script/test stops executing.
But what if, we want to run more that one tests in sequence.If such error occurs the next Test in line will not be executed.
Thanks in Advance,
Ameett