Completed
Last Updated: 04 Sep 2013 06:13 by ADMIN
ADMIN
Velin Koychev
Created on: 16 Jul 2013 13:01
Type: Bug Report
0
Compilation errors after we convert to code some types of verification steps
When we convert some types of verification steps into code, compilation errors are returned.
 This happens for test steps like "Verify <element> Left side Equal"  or "Verify <element> Top side Equal" 
'ArtOfTest.WebAii.Silverlight.UI.TextBlock' does not contain a definition for 'Left' and no extension method 'Left' accepting a first argument of type 'ArtOfTest.WebAii.Silverlight.UI.TextBlock' could be found (are you missing a using directive or an assembly reference?)

To reproduce:
Sample project is attached to the internal bug description.
2 comments
ADMIN
Konstantin Petkov
Posted on: 04 Sep 2013 06:13
Hello,

The problem is fixed with the latest internal build published last week:
http://www.telerik.com/account/your-products/internal-builds.aspx

Release notes:
http://www.telerik.com/versionnotes.aspx?nb=1&id=3301

Regards!
ADMIN
Plamen
Posted on: 17 Jul 2013 07:50
The problem is that the "GetIntRectangle()" method is missing when the step is converted to code. This is fixed and the fix will be included in our 2013.R1 SP1 release. Until then you can easily workaround it by manually adding that method.

For example, if the generated code is:
Assert.IsTrue(ArtOfTest.Common.CompareUtils.NumberCompare(Pages.TelerikTreeViewFor.SilverlightApp.DUMONTextblock.GetIntRectangle().Left, 304, ArtOfTest.Common.NumberCompareType.Equals), string.Format("Verify DUMONTextblock\'s Left side Equal 304 failed.  Actual value \'{0}\'", Pages.TelerikTreeViewFor.SilverlightApp.DUMONTextblock.Left));

In order to work you should change it to:
Assert.IsTrue(ArtOfTest.Common.CompareUtils.NumberCompare(Pages.TelerikTreeViewFor.SilverlightApp.DUMONTextblock.GetIntRectangle().Left, 304, ArtOfTest.Common.NumberCompareType.Equals), string.Format("Verify DUMONTextblock\'s Left side Equal 304 failed.  Actual value \'{0}\'", Pages.TelerikTreeViewFor.SilverlightApp.DUMONTextblock.GetIntRectangle().Left));