or
Pages.USSPOSCOIndustries.FrameHome.SilverlightApp.GridviewEarnings.NewRowTelerik.WebAii.Controls.Xaml.RadGridView rgv = Pages.USSPOSCOIndustries.FrameHome.SilverlightApp.GridviewEarnings;int rowCounter = rgv.Rows.Count;int cellCounter = 1; foreach(Telerik.WebAii.Controls.Xaml.GridViewCell gCell in Pages.USSPOSCOIndustries.FrameHome.SilverlightApp.GridviewEarnings.NewRow) { //Nested loop; Goes through all the cells within each row if (gCell.XamlTag == "textbox" && gCell.AutomationId == "PART_EditableTextBox") gCell.Text = (string)(System.Convert.ChangeType(Data["Hours"], typeof(string))); //You can implement any type of verification you like against the text here if (gCell.XamlTag == "selectivescrollinggrid" && gCell.Name == "grid") gCell.Text = (string)(System.Convert.ChangeType(Data["Hours"], typeof(string))); //You can implement any type of verification you like against the text here cellCounter++; } rowCounter++;
Pages.USSPOSCOIndustries.FrameHome.SilverlightApp.GridviewEarnings.AddNewRow();
------------------------------------------------------------'4/30/2012 2:18:05 PM' - Using .Net Runtime version: '4.0.30319.261' for tests execution.'4/30/2012 2:18:05 PM' - Starting execution....'4/30/2012 2:18:08 PM' - Failure detected during execution. Details:------------------------------------------------------------'4/30/2012 2:18:08 PM' - System.NullReferenceException: Object reference not set to an instance of an object. at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InitializeWpf(ExecutionEngineCreateParams initParams) at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.CreateAndInitializeEngine(Test test, ExecutionEngineCreateParams cp) at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ExecuteTest(ExecuteTestCommand command)------------------------------------------------------------'4/30/2012 2:18:09 PM' - Test completed!