Forum Discussion
If sString1 = sString1 then
Log.Checkpoint "The strings are equal","" ,,,Sys.Desktop.Picture()
end if
Is that what you meant?
- mcp1116 years agoContributor
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?
- tristaanogre6 years agoEsteemed Contributor
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.htmlAs 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?
Related Content
- 5 years agoFlo