I recently noticed that when I execute a function, any function, at least one other function that I wrote is executed first...except I am not explicitly calling it. Below is a test that I created on a new and empty script file as a test. There is no other code or comments in the file and no script includes. When I run this function, another function (always the same one) in another script file executes every time. Is there a default, or global setting somewhere that always executes a given function/script by default within a project?
I seem to have encountered the same problem,My Problem is I
defined a onlogerror event,when a error occur,it will execute a function(B).so when i execute a function(A) and trigger onlogerror event, function(B) will be exectured.I'm not sure this your question.
The default routine which is launched when you run your project is specified in the "Main Routine" property of your Script project item. Please see the "Script Project Item Editor" help topic for more information.
I do not have any error logging or a main routine on the "test" script. There literally isn't anything else in the script other than what I noted above. I am executing the test() function by selecting "Run Current Routine" from the right click context menu.
There are Main() functions in other scripts, but these scripts/functions are not explicitly included/called in this test. I am stumped as to how another function could be firing in this scenario.
To help us investigate the problem, please zip your entire project suite folder and send us the archive via our Contact Support form (http://www.automatedqa.com/support/message.asp). Also, in your message, please send us detailed steps to reproduce the issue.