Contributions
Freezes during Create Region Checkpoint, get Object Properties for a VB6 app
I'm able to do region checkpoints without any problem for applications like Notepad or Wordpad. But for my application I need to test, it is freezing either TestComplete or the application when I try to make a region checkpoint. I've tried all three methods -- finder tool, cursor, and the drag box one. Sometimes my application crashes, and other times TestComplete freezes or waits indefinitely for the region to be selected. It doesn't happen for all parts of the app, just certain ones which I think are built in an odd way (i.e. it's kind of hacked together). Or maybe it's just because VB6 is such an ancient language to be developing in. I tried to get Object Properties so I could paste those here, but again TestComplete either freezes or doesn't get any properties for the object when I use the finder or cursor tools. I'm using TestComplete 7.51 on Windows XP SP3 inside VMware Workstation 6.5.2. Any ideas? Maybe I am out of luck unless/until the programmers change the app under test to be more modern, like using .NET controls. Thanks!14KViews0likes8CommentsRe: Unable to obtain the item's rectangle (can't click VB object)
Here's my final script, using Low Level Procedures where there were parts of the program where TestComplete couldn't "see" the VB label object buttons. Hopefully this will help other people who run into the same problem when testing a VB6 app.3.8KViews0likes0CommentsRe: Unable to obtain the item's rectangle (can't click VB object)
In answer to my own question: you can use the SetFocus method for the application's window to bring it to the front and then execute the low level procedure. So it looks like I'm able to use TC afterall. I can't record the entire test, I have to break it up into section of regular keyword test and section of low level procedures. But it is working!3.8KViews0likes0CommentsRe: Unable to obtain the item's rectangle (can't click VB object)
Okay, I've started trying out the "record low level procedure" recording option. That seems to do what I want, but when I hit "Run Test", it doesn't minimize TC, so it goes through all the mouse motions with the TC window still in the foreground.3.8KViews0likes0CommentsRe: Unable to obtain the item's rectangle (can't click VB object)
Syed, Our current control is a "label" type of control from the MS Forms 2.0 library. It may not matter, actually, as the replacement for the buttons will be something else entirely that may be even *more* difficult for TC to see. So I guess my next question is, is there a way I can revert to the more primitive coordinate-based system of clicking on buttons (e.g. like vTask Studio uses)? I know that's not as robust a method of creating tests, since if the programmer moves buttons around, the test breaks. But at this point it may be my only option. Thanks.3.8KViews0likes0CommentsRe: Unable to obtain the item's rectangle (can't click VB object)
Oh, and when I use the Finder Tool, it doesn't put a red rectangle around the "button" that I want to click, it puts one around almost the entire window of our application. Some objects in our application can be individually highlighted, but many of these label-type ones cannot. It just highlights the entire frame of the window (minus menu and titlebar).3.8KViews0likes0CommentsUnable to obtain the item's rectangle (can't click VB object)
I'm evaluating TestComplete to see if it'll work for my company. Unfortunately, I'm not able to play back even basic keyword tests. I'm able to record and the test operations look okay. But TC can't "see" the objects I want to click. It just waits and then gives up like so: Waiting until the item becomes visible... Waiting for the X object... See attachments for examples of my test operations and error log. Note these are just examples, I know the error log doesn't match up with the test. Unless I can find some workaround for TestComplete to be able to "see" and click on these objects, or convince the programmers to change the GUI (unlikely!), I won't be able to use it to automate my tests. Any help or ideas appreciated... thanks!15KViews0likes7Comments