Forum Discussion
You're asking a lot of information in a simple question, mcp111. :)
So... to start with, the code is written in a Script unit. Read the following for writing script tests in TestComplete.
https://support.smartbear.com/testcomplete/docs/scripting/overview.html
As for the tooltip, I would use Object Spy to determine how the tool tip shows up. Sometimes the tooltip is its own object... sometimes it's a property of the object that has the tool tip assigned. So, you will need to first need to determine where the tool tip is. From that point, it's either code a HoverMouse action over the exclamation mark icon and do a property checkpoint on the tool tip object... OR, do a property checkpoint on the exclamation mark icon for the tool-tip property...
When I do a property checkpoint on the exclamation mark, I don't see any tooltip property. So how to compare the tooltip text?
And if the text is correct then how to log that the text has passed?
- tristaanogre6 years agoEsteemed Contributor
OK, did you do an object spy or did you do a property checkpoint to try and find the tooltip property? My suggestion was to first start with Object Spy to examine the object in question and see what properties are available, specifically looking for the tool tip property.
Keep in mind that Object Spy, by default, shows a "Basic" view of properties which doesn't show everything. When examining a component in object spy, you can click on a link at the top of the Object Spy window to view "Advanced" which will show all the properties.
- mcp1116 years agoContributor
I did an Object Spy and even in Advanced Properties it does not show the tooltip text
tristaanogre wrote:OK, did you do an object spy or did you do a property checkpoint to try and find the tooltip property? My suggestion was to first start with Object Spy to examine the object in question and see what properties are available, specifically looking for the tool tip property.
Keep in mind that Object Spy, by default, shows a "Basic" view of properties which doesn't show everything. When examining a component in object spy, you can click on a link at the top of the Object Spy window to view "Advanced" which will show all the properties.
- tristaanogre6 years agoEsteemed Contributor
So, that tells us that the tool tip is not simply a property of the component but is, itself, it's own component.
Because of the way Tool Tips work (that they only display on hover usually), you may need to use Object Spy/NameMapping slightly differently. Normally, you would typically use just the target to find and click on the component. There's an alternative option where you use SHIFT-CTRL-A to capture the information. Reference https://support.smartbear.com/testcomplete/docs/testing-with/exploring-apps/object-spy/working-with.html. This same method works with the Mapping tool to map the tool tip.
- mcp1116 years agoContributor
I have seen that the wText property gives tooltip text. Then why does that not appear in the property list?
tristaanogre wrote:OK, did you do an object spy or did you do a property checkpoint to try and find the tooltip property? My suggestion was to first start with Object Spy to examine the object in question and see what properties are available, specifically looking for the tool tip property.
Keep in mind that Object Spy, by default, shows a "Basic" view of properties which doesn't show everything. When examining a component in object spy, you can click on a link at the top of the Object Spy window to view "Advanced" which will show all the properties.
- tristaanogre6 years agoEsteemed Contributor
This tells me that you're doing the object spy of the tool tip itself... which is exactly what I suggested in my last post... so, in this case, you're spying the tool-tip object, it's not going to have a "tool tip" property... the wText is what you want to compare.
- Marsha_R6 years agoChampion Level 3
Here are all the different ways you can set up a checkpoint. The results will automatically be logged.
https://support.smartbear.com/testcomplete/docs/testing-with/checkpoints/index.html
- mcp1116 years agoContributor
Thanks
Now with the new forum design, why is my signature not appearing in my posts?
Marsha_R wrote:Here are all the different ways you can set up a checkpoint. The results will automatically be logged.
https://support.smartbear.com/testcomplete/docs/testing-with/checkpoints/index.html
- tristaanogre6 years agoEsteemed Contributor
mcp111 wrote:
Thanks
Now with the new forum design, why is my signature not appearing in my posts?
That's a question for TanyaYatskovska