Contributions
Runner.CallMethod not working after Runner.Stop(true) in OnStop Event.
Hello, Wehave afunction in which certain conditions are cheked. If those conditions are not met then inside the function thenwe arecallingRunner.Stop(true) so as to stop the execution of script. Once Runner.Stop is called the excution pointer movesto OnStopTestevent of TestComplete to perfom the cleanup activity. InsideOnStopTest events function, we have used Runner.CallMethod("ScriptFileName.FunctionName"). It has been observed that the Runner.CallMethodnever invokes the called function and the statement is ignored. This behaviour isobserved only ifRunner.Stop(true)is called before the execution pointer moves toOnStopTest events function. If Runner.Stop(true)is not calledthenRunner.CallMethod("ScriptFileName.FunctionName") present inOnStopTest eventsfunction woks fine. Please suggest a solution to the above problem. Thanks, Nishant1KViews0likes1Comment