Sergey_Kashin
10 years agoNew Contributor
TestComplete doesn't see some properties of an object in special cases (delphi application)
Hello!
I have several cases when TestComplete Debug Info agent returns results that looks inconsistent.
I have several cases when TestComplete Debug Info agent returns results that looks inconsistent.
Case Description:
1. TestComplete cannot get property defined by index and Get... method:
property prop1: integer index 1 read GetProp1;
- reproduced with both 32bit and 64bit application
2a. We found several cases when TestComplete cannot get some properties of inherited class in 64bit application, not sure if we found necessary and sufficient conditions but it is simple and reproducible; there are steps:
a. property should be defined by Get... method ("property prop1: integer read GetProp1;");
b. the class has a class constructor;
c. heir of the class has any public method or protected virtual method.
2b. In 32bit application properties are visible but their values are inaccessible ("Error: Unspecified error" is shown) in case:
a. property's class has a class constructor;
b. heir of the class has any public or protected method.
In attached file you can find a sample project that can be used to reproduce the issue.
TClassA has a class constructor and 3 properties (defined by field, Get... and Get...+index);
TClassA1, TClassA2, TClassA3 - 3 heirs of TClassA that have public, protected and protected+virtual methods;
3 properties (of TClassA1, TClassA2 and TClassA3) are created on FormCreate event.
If you check theese properties using TestComplete's Spy tool you'll find that inherited properties are not visible as described above.
TestComplete version 10.0.531.7 and
Embarcadero RAD Studio XE3 Version 17.0.4723.55752 are used.
I've raised the issue to SmartBear support (Case #00043957) and it was closed with advice to check limitations of Debug Info agent here: http://support.smartbear.com/viewarticle/56863/#Delphi
I've checked it:
1) We don't use default properties;
2) We use Embarcadero Delphi XE3; and the issue was found with object that has more than one method;
3) We don't use EurekaLog.
So, at the moment I have no answer what functionality is unsupported and not sure that there are no bugs here.
Best Regards
Sergei