
does not match the specified value (actual='Active', expected='ACTIVE').
is there a setting to Ignore case sensitivity in test suit level .

Please advice
Code: Select all
Validate.Attribute(repo.YourItemInfo, "InnerText", new Regex("(?i:" + stringVariable + ")\\s*$"));
Code: Select all
.//td[@innertext~'(?i:yourtext)\s*$']
Code: Select all
.//td[@innertext~'(?i:'+$stringVariable+')\s*$']
Code: Select all
Validate.Equal(actual.ToUpper(), expected.ToUpper());
Nice tip Kelly!krstcs wrote:Second, if you don't care about case you can always just change the case of both actual and expected values to the same case like:
Code: Select all
Validate.Equal(actual.ToUpper(), expected.ToUpper());