Forum Discussion

Udo_L_'s avatar
Udo_L_
New Contributor
14 years ago

Testcomplete changes position and size of elements in application


Hi all,



sorry that my first post is an inquiry but i´m running into a strange problem
with my Testcomplete regarding the size and Position of elements in some
registers of my tested application. Everytime i´m running the Testcomplete
Software on a W2k8 R2 x64 machine, the labels of my application (started manual
not via Testcomplete) are in the wrong size/position. It´s not necessary to do
a test run, the problem occurs if I simply start Testcomplete without any
project loaded.   I´ve attached some
pictures to show what it looks like :(


If i start my application without having Testcomplete started, all elements are
in correct size.

Start
Tescomplete-->start my app (manual)-->problem (see first picture)

Start my app without having any testcomplete app running
(manual)-->everything is fine


The
application was written in Delphi 7 (if this
matters)


We are using Testcomplete
7.5.2.6787



Please help, at the moment we can´t use Testcomplete


best regards

Udo

4 Replies

  • Hi Udo,


    The problem you are describing is not common. I don't remember I've seen it before.

    Most likely, there are some specifics in your application that TestComplete does not handle properly (as far as I can see, the app does not resize the panels). Currently, for me, it's difficult to determine what goes wrong. Maybe the problem is caused by some plug-ins that are included and enabled in TestComplete, but not used in your Delphi application testing. So, I'd suggest turning off these plug-ins. To do this:


    * Close your tested application.

    * In TestComplete, select File | Install Extension from the main menu. This will invoke the Install Extensions dialog.

    * In the dialog, find the "Open Applications Support" plug-in and clear its Active check box. Click OK.

    TestComplete will disable the plug-in and will display a message box asking for your permission to disable all the dependent plug-ins. Select Yes to disable them.

    * Open the Install Extensions dialog again and now, enable the "Open Applications Support" and "Delphi and C++Builder Open Applications Support" plug-ins. They are needed for your Delphi application testing. Click OK to apply the changes and to close the dialog.

    * Restart TestComplete. Launch your application and check whether the problem persists.


    If this does not help, I'd suggest that you sign up for a TestComplete 8 trial and check your application with this version.


     

  • Udo_L_'s avatar
    Udo_L_
    New Contributor
    Hi Alex,



    thank you for your support! I tried what you´ve suggested but had no success. I tried to disable all the plugins, only to activate the plugins you said and with all plugins activated. :(



    Last week we´ve tested the new Version of Testcomplete already --> same effect.

    I´ve attached a video showing the problem.



    Thanks in advance for any further help!

    Udo
  • Udo,


    The problem is rather specific and requires investigation. I suggest that you send a query to our Support Team. They will analyze the situation and help you. Please describe the problem, include a link to this forum thread and attach screenshots. Also, please attach a snapshot of events that occur in your application. It will help the support guys find the cause of the problem faster. To get a snapshot:


    1. Download AQtime Standard, which is our free profiling tool, from our web site:

    AQtime Standard

    2. Install AQtime.

    3. Start AQtime with the -NotOpenApp command line argument. For example, you can use the following command line:

    "c:\Program Files\SmartBear\AQtime 7\Bin\AQtime.exe" -NotOpenApp

    4. Select the 'File | Open...' main menu item.

    5. In the Open File dialog, select the executable file of your Delphi application and click Open.

    6. Take a look at the AQtime toolbar - there is a combo box. Open it and select the "Tracing | Exception Trace Profiler" item.

    7. Select the "Options | Options..." main menu command - the Options dialog will appear.

    8. Enable the "Profiling Time | Event View | Debug Events | Generate dump on exception" option and specify a dump folder.

    9. Set the "Profiling Time | Event View | General | Exceptions | Depth shown" setting to 100 and click OK.

    10. Click the Run toolbar button (the green arrow) or press F5 to start the profiling.

    11. AQtime will start the tested application and generate dump files for all exceptions that will occur in the application until it is closed.

    12. Launch TestComplete and reproduce the problem in your application (open the form that does not get resized properly).

    13. After the problem occurs, right-click somewhere within the Event View panel (it is opened by default at the bottom of AQtime's window) and select the 'Save All...' item.

    14. Save the panel's contents to an HTML file. Attach this file and all generated dump files to the message you will be sending to the Support Team.

  • Udo_L_'s avatar
    Udo_L_
    New Contributor
    Hi Alex,



    thank you for your help. I will try what you have suggested and will keep you informed.



    best regards,

    Udo