Hello
We want to write custom logs on Response time and error messages during runtime to a shared drive . We are currently manually harcoding scriptname as a filename (TTT_Schedule_Cancel__TCWEB_Error_) in Evaluate Javascript code step as below .
How can i Capture Scriptname dynamically .. is there a TC API to get just like Utils.getEnv("COMPUTERNAME")
Also where can i find help on Utils.getEnv and what parameters it can take
Here TTT_Schedule_Cancel__TCWEB is the scriptname
var filename1 = "\\\\172.18.229.50\\LOGS\\\TTT_Schedule_Cancel__TCWEB_Error_";
var filename2 = "\\\\172.18.229.50\\LOGS\\\TTT_Schedule_Cancel__TCWEB_";
filename1=filename1+hostIP+"_"+datestring+".txt";
filename2=filename2+hostIP+"_"+datestring+".txt";
Thanks
Naveen