Forum Discussion
Hi,
Project Variables of Temporary type should work for you.
If you need to save tested application objects while the tested application is restarted, then you must serialize and deserialize these objects. This is because TestComplete does not store object copy (which is senseless) but keeps a reference to it and the tested application deletes all its objects when closed.
Anyway, objects itself cannot be compared, only their serialized representation can be.
- GenomeTester9 years agoNew Contributor
Hi,
I was able to solve my problem without the need to serialize and deserialize objects. Also I did not need to use Project Variable of Temporary type either.
I used the aqString.Concat() function to append a dummy string to object.ToString() and was able to save it to my global array variable. I think this somehow forced TestComplete to re allocate the reference to actually a string variable and pass by value. Now when the tested application is restarted, I only needed to account for the dummy string before my comparison and everything worked as expected.
Thanks!
Related Content
- 14 years agoANW