see the attached file, even after both text match, it shows failure in aqObject property check............i am using 14.10, as 14.30 not supporting my product
Solved! Go to Solution.
If "text contains" doesn't work for you, I could suggest that you consider creating a custom comparison based on regular expressions. You can easily divide the text into groups among non-printable characters and compare them. You can find more information on how to work with regular expressions in the following article:
Some of those non-printing characters are a pain to actually match. You might want to simply replace the non-printing with an asteristk.
I can not share more code (apart from what i attached in png with original message) reason being it's production code in my company, restricted by terms and conditions. Its simple aqobject property check for a panel, where cmpEqual showing something diffrent even though i copied exact text what test complete read from the panel.
I am surprised how come Test Complete engine rejecting it even though both texts as same.
Thanks for reply. I tried replacing with * , but same result (failure) i am experiencing.
|"Device name↴IP address↴Device model"|
|"Device name*IP address*Device model"|
The thing is... it's not EXACTLY. That's the thing... those arrows represent a non-printing character. So, if you copied and pasted the ARROW, that's a mismatch. What I've had to do in the past is go to Object Browser and grab what's there and use that rather than what shows up in the logs.
Get properties of a web page element
Compare images using the Region Checkpoint
Compare HTML table with Excel file and correct data in Excel file
How to execute remote test and obtain results via Test Runner REST API