Validation fail despite it looking successful to me.
Posted: Tue Jun 26, 2018 1:28 pm
I have the following user code to perform validation:
A user may enter a numeric value in an <input> The app appends ".00" to the H3 text that I am trying to validate when a user does not input it. This validation fails. See attached log screen shot.
Code: Select all
public void Validate_PaymentTotal(RepoItemInfo h1tagInfo)
{
Decimal number = Convert.ToDecimal(PaymentAmount);
string paymentTotal = "Payment Total " + String.Format("{0:n}", number);
Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (InnerText=$PaymentAmount) on item 'h1tagInfo'.", h1tagInfo);
Validate.AttributeEqual(h1tagInfo, "InnerText", paymentTotal);
}