Forum Discussion
Where to write this code?
Also in my desktop application, the error message is displayed in a tooltip when I hover over an exclamation mark icon.
I need to read that tooltip message and then log to an external file that the test has passed
How to do this?
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...
- mcp1116 years agoContributor
I need to do everything in TestComplete itself.
How would I access tooltip text in TestComplete?
How to log a message that the test passed to an external log file?
- tristaanogre6 years agoEsteemed Contributor
mcp111 wrote:
I need to do everything in TestComplete itself.
How would I access tooltip text in TestComplete?
How to log a message that the test passed to an external log file?
And my answer all involves TestComplete. Script units are part of TestComplete. so, if you want to write that code, you need to write script code in a script unit and then use "Run Script Routine" operation in your keyword test to execute. Object Spy is part of TestComplete. Property checkpoints are part of TestComplete.
So... I'm not sure what you're looking for.
- mcp1116 years agoContributor
ok
When I googled Object Spy it showed QTP Object Spy so that's why I was confused.
When I looked in more detail I found that there was also a Testcomplete object spy.
I think I got what I need.
Thanks
- mcp1116 years agoContributor
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.
- 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