Forum Discussion
irina_lukina
14 years agoSuper Contributor
Hi Jyothi,
Using wscript.quit is throwing error that wscript object is required.
Can anyone tell me how to use wscript.quit?
TestComplete doesn't allow calling this method as it contradicts our product's internal organization.
As a workaround, I recommend that you modify your script in the following way:
function x(a)
If a = 2 then
msgbox "Hi"
else
msgbox "Fail"
exit function ' <- this will resolve your problem
end if
end function
Sub a
call x(1)
msgbox "Pass"
end sub
sub b
call x(2)
msgbox "Pass"
end sub
Sub Main
call a
call b
End Sub