- This topic has 9 replies, 4 voices, and was last updated 12 years, 2 months ago by Support.
-
AuthorPosts
-
October 12, 2011 at 1:45 am #34822HamiltonParticipant
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
October 13, 2011 at 8:07 am #46879HamiltonParticipantI'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 😛
August 1, 2012 at 7:40 pm #48683JamieParticipantIs 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.
August 4, 2012 at 6:08 am #48697SupportKeymasterHello
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?
August 13, 2012 at 5:33 pm #48756JackMParticipantSerge,
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
August 24, 2012 at 5:49 am #48819SupportKeymasterHello
ASkinDemo.exe should be runned already? TestComplete can't find this Exe when script is running.
August 24, 2012 at 7:04 am #48823HamiltonParticipantHi 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
August 24, 2012 at 7:33 am #48825SupportKeymasterASkinDemo.exe is runned from explorer, but can't be found by script… (“process not accessible”)
August 24, 2012 at 8:15 am #48830HamiltonParticipantWhen 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?
August 24, 2012 at 11:33 am #48834SupportKeymasterYou are right seems. Thanks, I'll check it soon 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.