I need to test the range of Textblock, say for example I need to test the contains of the Textblock should be within the range (0 to 999999), how I do that? any example?
Also how I check for negative value
Your help and support much apprecialted
Talal
1 Answer, 1 is accepted
0
Ivaylo
Telerik team
answered on 27 Feb 2012, 07:18 PM
Hello Talal,
Please excuse me for the delayed reply.
Unfortunately you cannot perform such a verification only by using the Test Studio menu. You can do that using coded step. I am providing you the code example below:
//Assert.IsTrue(ArtOfTest.Common.CompareUtils.NumberCompare(Pages.TelerikDataFormFor.SilverlightApp.Item3Textbox.MaxLength, 999999, ArtOfTest.Common.NumberCompareType.LessThanOrEqual), "Property does not satisfy constraint");
Should you have any additional questions please let us know.
Greetings,
Ivaylo
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings