Forum Discussion

csteinburg's avatar
csteinburg
Occasional Contributor
3 years ago

Are there any characters that can cause Compare Properties to fail?

I am using the String  THEquickbrownfoxjumpedoverthelazydog!@#$%^&*()_+1234567890-=-\|,./<>?;':"[]{}'` and TestComplete consistently reports on Compare Properties that my field does not contai...
  • Marsha_R's avatar
    3 years ago

    Slashes and quotes can be taken as control characters in coding sometimes, not just in TC.  

     

    I would try adding aqConvert.VarToStr to both the values being compared just to force them each into being a string and see if that helps.

    https://support.smartbear.com/testcomplete/docs/reference/program-objects/aqconvert/vartostr.html

     

    You can also try using two slashes and two quotes or double quotes in each spot where you have one.  Two in a row can sometimes convey "I am a string" instead of "I am a control character".