Forum Discussion

mikev's avatar
mikev
Contributor
13 years ago

Toolbars, Menu's and Checkpoints

Finally starting
to look at the possibility of using checkpoints. In Winrunner, we used
them a whole bunch, they were great. In QTP, we never used them, they
were horrible.



I want to be able to check toolbar buttons
(exists, visible, enabled, etc.) as well as menu objects and their children.
The two checkpoints that I'm pretty sure that will fit the bill are
Object Checkpoints and Property Checkpoints. I think I understand those
fairly well, but I'm not so sure they can do what I'd like to do.



For
example, I have a File menu, and under the file menu I have Open,
Print, and Close. I want ONE checkpoint that will verify that I have a
File menu and it's enabled, verify that under the File menu I have Open,
Print and Close. Same kind of thing for the toolbar. I don't think I
can do this, I think I need a checkpoint for every menu and menu item,
and I think I need a checkpoint for every toolbar button. If that's the
case, then checkpoints (at least in this context) are not for me, as
I'd need so many checkpoints, that I might as well write the code to
verify what I want.



Thoughts?
  • Thanks Stephanie, I saw that reply, but I don't think it's really addressing what I'm asking.  I suppose the best way for me to do what I want to do is just write the code and not use checkpoints for this task.  Thanks for trying to help though!
  • sastowe's avatar
    sastowe
    Super Contributor
    I am not sure what you mean by "use checkpoints". Perhaps you mean using the wizard that creates a aqObject.Check something method call? Doing a Log.Checkpoint seems functionally identical to me.
  • Hi,




    I want to be able to check toolbar buttons (exists, visible, enabled, etc.) as well as menu objects and their children.


    An object checkpoint is what you actually need. You can select a set of objects (that is, a menu/toolbar and all its items) and specify a combination of properties you need to check (e.g. Enabled, Visible, Exists, Text - whatever you need to verify). To do this, select the "Store data of the selected object and its children" (in TestComplete 8, this option is called "Store properties of child objects" option) while creating a checkpoint.

    For more information on object checkpoints, refer to TestComplete's help.




    Please let me know if you need anymore assistance.

    Ann




  • sastowe's avatar
    sastowe
    Super Contributor
    Sweet. I learned something new too. Thanks for that.