Property Unspecified error on test run
Hi!
I'm facing some truble on test runs with the properties. When I write/record the tests and run only that one I can access the RTTI properties of the objects. But when I run the whole project the test fails because the TC can not read the property due to "Unspecified error". Therefor it runs to different types of error like "object does not exists" or "DelphiScript runtime error".
I can reproduce it manually by opening windows same as in the test, and watch the object with the Object Spy.
If I close the ProjectSuite and check the object again, almost everything came back except the Caption prop.
After I restart the TC the Object Spy can see all the properties. (It also can access again if I restart the tested program. In this example I restarted the TC.)
I think it's something about the NameMapping and the caching of the objects, so I tried the Refresh and RefreshMappingInfo, but it doesn't worked. I tried them for every single object in the hierarchy.
I checked the NameMapping and there's no interfere in it.
I tried to search them with FindChild, but the properties were on error again.
I also tried to set the Method invoke timeout to 40000 ms.
These errors affects a few projects, and sometimes it happens randomly
Is there any way to clear the object cache or forcing to release the references?
Or any other idea how to resolve it without restarting the TC or the tested program?
Thanks,
Peter