My testing scenario: Need to test cached cached objects between two different application sessions App1 and App2. App1 and App2 are two different versions of the same desktop application that retrieve cached data from the same TEMP directory in Windows.
Procedure: Running as one single jscript procedure.
1) Start App1.
2) Capture variable object values in TestComplete and store in array variable after converting to string.( I have tried both global array and Project varible type Table).
3) Close App1 using TestComplete.
4) Start App2 in TestComplete ... and capture same data point and store in similar variable type.
5) Close App2 using TestComplete.
6) Compare the data between the variables for App1 and App2 and report if data is different.
Problem: Closing App1 and App2 causes the object data to be lost in both array type as well as project type variables. Therefore at the compare stage, my test fails as all the variables dont hold anything.
Is there a clever solution to this problem?? There has to be a way to store object data in TestComplete once the tested application goes out of scope so that it can be used by other methods or scripts at the same/later time.
I have looked into Persistent variables and I am surprised to see that only limited primitive types are allowed. Am I missing something??