Forum Discussion

krupa_luke's avatar
krupa_luke
Occasional Contributor
12 years ago

Getting Call Stack Information during execution?

Hello,



In case of failure, is it possible to get call stack information and use it before test execution stops from log object or some other? I know I can find it in testComplete's log, but is it possible to get it and store it for instance into some variable before test execution stops?



With testComplete I am generating my own html report and  if some error occurs I wish to store all vital information via Events into this report, especially script rows on which script failed.



Is there any way how to obtain it?



Thanks!!
  • jose_pita's avatar
    jose_pita
    Super Contributor
    I might be out of my league here but see if this can help:



    Do the following to get the call stack info on the log:




    Log.CallStackSettings.EnableStackOnEvent = true; 


      Log.Event("Stopped or finished"); 

    Log.CallStackSettings.EnableStackOnEvent = false; 



    Now you  just have to find a way to access the log results on runtime (not much of a helper hey??), try something like this:

    http://support.smartbear.com/viewarticle/27048/#Parsing