Forum Discussion

mona's avatar
14 years ago

DevEx and Delphi based applications,


Hi,



I am evaluating TestCompelete for testing our application which is based on
Delphi and DevEx components.

The main issue I faced was that the tool can record the user actions, however
it can not play it back correctly and it fails in playback. After checking with
object identification, I noticed that the tool can only detect the main
controls and not the child-objects. Surprisingly, when I manually click on
child-objects and try to highlight it using object identify, then it can
highlight the object!

As an example, there is a control with class name as TcxVerticalGrid, which
contains many child-objects such as  TcxCheckBox,
TcxCustomRadioGroupButton or TcxCustomInnerTextEdit. When I use object spy, I
can just locate the main control (TcxVerticalGrid) and the child-objects can
not be detected, however when I manually click on the child, then I could see
its attributes using the object spy! The problem is that when I navigate to
some other view and come back to this view, TestComplete is not able to locate
the child-objects!

As it is mentioned in the TestCompelete release note, it should support
DevExpress Editor version 6 (which we are using as well), but it seems this is
not the case! Can anyone help me please to resolve this issue?



Thanks,

Mon

  • Hi Mon,


    I'm not a big specialist in DevExpress TcxVerticalGrid controls :-),  but I will try to help you. I suppose, the child objects you mentioned are helper objects that are used for in-place editing. Most likely, the VerticalGrid object creates and stores these helper objects in a kind of cache and displays them only when an in-place editor is needed. If you don't have an active in-place editor, you won't see the helper objects.

    You cannot detect them with the Object Spy as it works only with visible objects. I guess, the same happens when you switch to another view: most likely, the grid hides the in-place editor so that you cannot locate it.