| || |
Action didn\'t find function in library
i have overloaded the function micFail
micFail = micFail
If i put the funtion in the Action script, the msgbox appears, if an error occured.
But i put the funtion in a library an attach the library to the action, the msgbox ddidn't appear, if an error occured.
What žs wrong?
Re: Action didn\'t find function in library
The scope difference. Actions run in different scope compared to Actions scope. QTP will only refer to global scope if it can't resolved something in local scope. Micfail can be resolved as the constant in local scope and hence it will not go to the global scope (your associated library). To overcome this you should refer to the below article