ray_mosley
13 years agoFrequent Contributor
Getting project information
When you set up project suite and project test items with enabled test items, the information is available to your jscript:
var ti =Project.TestItems;
var tiName = ti.Current.Name
HOWEVER, when you just run the script you are working on - that is, you do NOT use Run Project or Run Project Suite, but you execute using the Run Current Routine button - the script terminates on ti.Current.Name (object required).
If I know how the executing script was started, I can set a dummy script name like UNKNOWN and prevent terminating execution (i.e., no execute the ti.Current.Name).
How can I tell which method
Run Project Suite
Run Project
Run Current Routine
was used to start the currently executing jscript?
Thanks in advance.
var ti =Project.TestItems;
var tiName = ti.Current.Name
HOWEVER, when you just run the script you are working on - that is, you do NOT use Run Project or Run Project Suite, but you execute using the Run Current Routine button - the script terminates on ti.Current.Name (object required).
If I know how the executing script was started, I can set a dummy script name like UNKNOWN and prevent terminating execution (i.e., no execute the ti.Current.Name).
How can I tell which method
Run Project Suite
Run Project
Run Current Routine
was used to start the currently executing jscript?
Thanks in advance.