AlphaControls and TestComplete

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #34822
    Hamilton
    Participant

    Hiya,

    I'm trying to write some test scripts for some of my apps using QA Test Complete (here) and are running into some problems. If I record operations in the UI then edits seem to work OK but checkbox clicking doesn't work, combo box selection doesn't work, etc etc. Has anyone managed to use TestComplete with an app using AlphaControls?

    Regards,

    Hamilton

    #46879
    Hamilton
    Participant

    I've investigated this further and learned that if I deactivate the Alpha Control skin manager then TestComplete starts recognizing the control properties. I've implemented a feature to turn off the skin manager in the app and now I can record tests the same as if I were using standard VCL controls. If I get more time later I'll investigate how the skin manager is affecting the control properties and see if I can come up with a better solution but this is sufficient for now. The app looks pretty average without a skin but the test scripts don't mind that too much 😛

    #48683
    Jamie
    Participant

    Is there any update on this? We're seeing an issue where when we enable skins Test Complete can no longer see the captions of menu items, they just show up as questions marks or blocks. I'm using version 7.51.

    #48697
    Support
    Keymaster

    Hello

    I have installed the TestComplete and have tested some applications (including ASkinDemo.exe), but no problems there.

    Maybe I'm doing something wrong. Can you help me for a reproducing a problem under TestComplete?

    #48756
    JackM
    Participant

    Serge,

    Start the ASkinDemo.exe application. In TestComplete create a project with the default script type of JScript. Add the following function to a script file –

    Code:
    function ShowMenus() {
    Log.Message(“Main menu count – ” + Sys.Process(“ASkinDemo”).VCLObject(“MainForm”).MainMenu.Count);
    for(var i = 0; i < Sys.Process("ASkinDemo").VCLObject("MainForm").MainMenu.Count; i++) {
    Log.Message(Menu Caption – ” + Sys.Process(“ASkinDemo”).VCLObject(“MainForm”).MainMenu.Items(i).Caption);
    }
    }

    In this function right click and select Run Current Routine. If you look in the log you will see a line showing the menu count which is 5 and then 5 log entries showing Menu Caption -. The expectation is that the menu captions should have been printed. For your application we should have seen Menu Caption – Managing, Menu Caption – Dialogs, etc. In our product with skins enabled we cannot see the captions for our menus. If we disable skins we then can see and access all of the captions. Please let me know if you have any other questions.

    Thanks,

    Jack

    #48819
    Support
    Keymaster

    Hello

    ASkinDemo.exe should be runned already? TestComplete can't find this Exe when script is running.

    #48823
    Hamilton
    Participant

    Hi Serge,

    You'll have to run ASkinDemo first – the script is searching for a process called Sys.Process(“ASkinDemo”).

    You could modify the script to launch the exe but Jack wouldn't have done that because he doesn't know the path to that file on your system.

    I haven't tried to use TestComplete with AC in the last few weeks but I'll fire it up over the weekend and see what results I get too if you still cannot repro.

    Regards,

    Hamilton


    #48825
    Support
    Keymaster

    ASkinDemo.exe is runned from explorer, but can't be found by script… (“process not accessible”)

    #48830
    Hamilton
    Participant

    When you run ASkinDemo.exe, what is it called in the task manager? If you're on a 64 bit system (like mine) it is listed as ASkinDemo.exe *32 – it might be worth adding the *32 to the process name and seeing if that matches?

    #48834
    Support
    Keymaster

    You are right seems. Thanks, I'll check it soon 🙂

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.