Forum Discussion

tarunaggarwal23's avatar
tarunaggarwal23
Occasional Contributor
6 years ago
Solved

Persisting UI Object

Is it possible to persist UI object variables across automation runs?

 

I have a peculiar scenario:

1. I am invoking TestComplete functions from Java. 

2. From Java, I call TestComplete Functions to launch App 1 and App 2.

3. From Java, I call a TestComplete Function to pefrorm certain action on the App 1 UI.

4. From Java, I call a TestComplete Function to pefrorm certain action on the App 2 UI.

5. Now again from Java, I want to call a TestComplete Function to pefrorm certain action on the App 1 UI.

 

At step 5, the objects recognized during step 3 are no longer valid. So, just wondering if it is possible to persist the UI objects and Arrays created in step 3, and resuse them directly in step 5.

 

Any suggestions / workarounds please?