hhagay
9 years agoContributor
How to build a dynamic report method that count through function calls and gets function name
Hello
I am implementing the following around every function call
/** * Function Name:beginlog * Description: * @param {} * @return {} */ function beginlog(StepDescription) { Log.AppendFolder(StepDescription); Indicator.PushText(StepDescription); } /** * Function Name:endlog * Description: * @param {} * @return {} */ function endlog() { Indicator.PopText(); Log.PopLogFolder(); }
Questions:
1. Is there a way to get the function name dynamically?
2. Is there a way to maintain a Global array that numerates the various beginlog() calls?
3. Is there a way to hold a Global getCurrentTime instead of passing it to every script?
Thank you :)