Forum Discussion

jhanely's avatar
jhanely
New Contributor
9 months ago

Check if Currently in Execution Plan

I tried searching the documentation of Execution Plans but couldn't find what I'm looking for.

 

Currently my test python scripts are opening a CSV to read values and closing it afterwards. This means only 1 script can be run at a time since files can't be reopened once closed in a single run.

 

I was wondering if there was a way for TestComplete to identify if it's currently in an Execution Plan. That way I can do a simple IF statement to see if we're in an Execution Plan or not and close the CSV when applicable. I can definitely code a project variable that is just a Y or N to accomplish this but wanted to use any integrated functions TestComplete has prior to going that route.