mfoster711
20 days agoRegular Contributor
Check if running next test item
I have a Python Class that gets called from numerous places in our code. In that class, I have check to determine if this is the first time to call the class and it will perform some setup code if it is. Otherwise, on subsequent calls to the class it will skip the code.
This code works fine as long as I am running one test item. If I have multiple test items, Python will see the class as still being initialized but I need it to perform the setup code again.
Is there a way to set a variable in python that gets reset each time I go to a new TestComplete Test Item?