slaugier
7 years agoOccasional Contributor
My CheckProperty with cmpEqual always return an error when it checks 2 identical texts
Hi
My aqObject.CheckProperty always fails. However, the text is strictly the same.
I tried with cmpEqual :
aqObject.CheckProperty(Aliases.browser.page1000508080FinvestQa31Startse.panelLeftcontainer.panelRiskClassGauge.panelGauge.panelContainer.panelHighcharts0, "contentText", cmpEqual, "Created with Highcharts 4.1.4↴IR7↴Classe de↴risque 2↴Classe de risque 2↴Classe de↴risque 3↴Classe de risque 3↴Classe de↴risque 4↴Classe de risque 4");
and with cmpMatches :
aqObject.CheckProperty(Aliases.browser.page1000508080FinvestQa31Startse.panelLeftcontainer.panelRiskClassGauge.panelGauge.panelContainer.panelHighcharts0, "contentText", cmpMatches, "Created with Highcharts 4.1.4↴IR7↴Classe de↴risque 2↴Classe de risque 2↴Classe de↴risque 3↴Classe de risque 3↴Classe de↴risque 4↴Classe de risque 4");
I tried to add
aqEnvironment.LanguageForNonUnicodePrograms = "French";
at the beginning of my function, but it doesn't help.
Do you have any idea?
Sylvain
Note that the characters you have in your code that show up as
↴
are how TestComplete represents those non-printing characters. They may be more accurately represented by a /n or something like that. As cunderw suggests, that may be where the problem is.