Completed
Last Updated: 28 May 2014 12:51 by ADMIN
ADMIN
Cody
Created on: 21 May 2014 21:30
Type: Bug Report
0
RadTreeView translator cannot handle more than one level
A test that tries to expand a node more then 1 level deep will fail with:
'21/05/2014 11:26:07' - 'Fail' : 7. RadTreeView('ctl00_ctl00_NestedMasterHolder_iRoomPageHolder_dataTreeViewControl_treeViewDataTree'): '03.01. 01. Tax assessments and penalties' action -> 'Expand'
------------------------------------------------------------
Failure Information: 
~~~~~~~~~~~~~~~
Object reference not set to an instance of an object.
InnerException:
System.NullReferenceException: Object reference not set to an instance of an object.
   at Telerik.WebAii.Controls.Html.RadTreeView.FindNodeByHierarchicalIndex(String hierarchicalIndex)
   at Telerik.WebAii.Controls.Html.RadTreeView.ExpandNodeByText(String nodeText)
   at Telerik.WebAii.Design.Translators.Html.TreeView.RadTreeViewActionDescriptor.Execute(Browser browser)
   at ArtOfTest.WebAii.Design.Extensibility.HtmlActionDescriptor.Execute(IAutomationHost autoHost)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)

To repro record a test that:
1) Navigates to http://demos.telerik.com/aspnet-ajax/treeview/examples/loadondemand/wcf/defaultcs.aspx
2) Expand first level node
3) Expand a second level node
4) Playback the test
2 comments
ADMIN
Daniel Djambov
Posted on: 28 May 2014 12:50
Telerik: this is expected behavior in this specific scenario, where loading and dynamic changes of the elements is invoked. The problem is because the node "US Sports" is not currently loaded when "Expand US Sports" executes. The correct test here is to wait for nodes to exist before the second expand:
 - TreeNode 'Sports' - Expand
 - Wait for 'Sports' child nodes count equals '2' (this verifies that node 'US Sports' and 'European Sports' are loaded)
 - 'US Sports' actions 'Expand'

The above steps (RadTreeView('ctl00_ContentPlaceHolder1_RadTreeView2') (Wait for): 'All' node count 'Equals' '5'.) will make the test works properly.
 
Cody
Posted on: 21 May 2014 21:33
There is a temporary workaround. Follow this video:
http://screencast.com/t/7TmQMMhpknF