Contributions
Re: Testing Telerik Tree View controls
Hi Tanya, I can't attach our actual application but I have attached a sample. This gives you some indication of the problem.If you run record on this, you can see that the RadTreeView is displayed in the name mapping. This looks like it may have worked because it is not created a seperate entry per tree view item like our application does. But looking at the recorded script, it has done the following (whereasI would expect it to pick up the name of the tree view item (like our winforms application tests do): Sub Test8 Dim radTreeView Set radTreeView = Aliases.TestTreeView.HwndSource_MainWindow.MainWindow.Grid.RadTreeView Call radTreeView.ClickItem("") Call radTreeView.ClickItem("") Call radTreeView.ClickItem("") Call radTreeView.ClickItem("") Call radTreeView.ClickItem("") Call radTreeView.ClickItem("") Call radTreeView.ClickItem("") Call radTreeView.ClickItem("") Call radTreeView.ClickItem("") End Sub I'm not sure if the attached application truly explainsa out problem though because the name mapping is different. I have attached what happens in our actual application (namemappingapplication). Woulds it be possible that someone in TestComplete support can contact me and I can show them the problem if they cannot reproduce this? Thanks, Joanne1.7KViews0likes0CommentsRe: Testing Telerik Tree View controls
Hi Tanya, YesI have tried this but it doesn't seem to work: Call HIERARCHY_TREEVIEW.ClickItem("Shell") produces the following error attached. Also I notice when I record a script it records as the following from clicking on different nodes in the tree view: Set radTreeView = palantirDataflow.HwndSource_Shell.Shell.Grid.TabControl.MainHierarchyView.Border.Grid.Grid.ContentControl.HierarchyEditorView.Grid.DockPanel.tvwDocuments Call radTreeView.ClickItem("") Call radTreeView.ClickItem("") Call radTreeView.ClickItem("") Call radTreeView.ClickItem("") Call radTreeView.ClickItemR("")3.2KViews0likes0CommentsRe: Testing Telerik Tree View controls
Hi, I am still having some problems with getting testComplete to recognise the Telerik controls in WPF. In the current Project properties in Object Mapping I have set the following: Under WPF Controls then Tree View: Telerik.Windows.Controls.RadTreeView Under Tree View Item: Telerik.Windows.Controls.RadTreeViewItem When I then record a script I records it as follows: Set radTreeView = palantirDataflow.HwndSource_Shell.Shell.Grid.TabControl.MainHierarchyView.Border.Grid.Grid.ContentControl.HierarchyEditorView.Grid.DockPanel.tvwDocuments Call radTreeView.ClickItem("") For a winforms tree view in a different application I am able to do the following: Set OpenResultSetExplorer = navigationPane.resultSetsPane.ResultSetTreeView.panel1.tvwResultSets Then: Set treeView = OpenResultSetExplorer () Then I reference the TreeView using TreeView.wItems, Call treeView.DblClickItem("|Root|" etc. When i try to do treeView.DblClickItem("|Item name|" for the Teleric tree view this is not recognised. Do anyone has any ideas? Thanks, Joanne3.2KViews0likes0CommentsRe: Testing Telerik Tree View controls
Note, when I record a script and click some of the tree view items, the itmes are being recognised in the format below: Call radTreeViewItem.Click(53, 9) Call radTreeViewItem.Radtreeviewitem1234567890PalantirFieldComm.Click(73, 12) Call radTreeViewItem.RadTreeViewItem.Click(85, 13) which isn't create becasue I means I have to know what is in the TreeView before testing.3.2KViews0likes0CommentsTesting Telerik Tree View controls
Hi, I'm slightly confused as to the best way to test Telerik TreeView items. I want to be able to reference them via theirindexlikeI have done for Winforms TreeViewse.g. Set ORGANISATION_ITEM = HIERARCHY_TREEVIEW.wItems.Item(1) Set Item = Items.Item(i) I have Test Complete 9 installed and both Telerik plugins. When I record a test, the aliases are mapped, hardcoded by their names as you can see from the attachment called TreeViewNode. In the Object mapping properties, I have added the class name as shown in the attachment. What is the best way of locating nodes in the Telerik TreeView? Thanks in advance! Jo21KViews0likes15CommentsLosing positions on items in TreeView
Hi, I have a current problem selecting items in a treeview. Basically I need to iterate through each item in the tree view, perform an action then move on to the next. In the latest release of our software, the position in the treeview is lost once you have carried out a particular action and the script will then randomly jump to a different item. I need to go through each one in sequential order. Does anyone know the best way to store the position so that when I specify Item/Click it will go to the correct item? I tried getting the position before the action is performed by getting the selected node- nodeName = TreeView.wSelection .Then after the action is performed -Call TreeView.ClickItem(nodeName) to take it back to the correct position but this doesn;t seem to work. Below is the code: Sub RunResultSetReportsNewFrom(Items, TreeView) If (Items.Count-1) mod 2 = 0 Then totalCount = (Items.Count-1) * 2 Else totalCount = ((Items.Count-1) * 2) -1 End if For i = 0 To totalCount originalResultSet= False Log.Enabled = True Set Item = Items.Item(i) foundRS = False Item.DblClick nodeName = TreeView.wSelection Log.Enabled = False 'Do a New from If (cash.adminForm.VariableDefinitionForm.ResultSetForm.pnlMain.pnlResultSetEditor.resultSetEditor1.resultSetNameAndLocationEditor1.WaitAliasChild("txtNewName", 1000).Exists) Then resultSetNameTemp = resultSetName.wText If Instr(resultSetNameTemp, "Auto") Then originalResultSet= False Else originalResultSet= True End if closeResultSetBtn.ClickButton End if If originalResultSet= True Then foundRS =True Call Item.ClickR Call cash.cmuResultSetTreeView.Click(50, 41) Call resultSetName.SetText(resultSetNameTemp & "Auto") 'calculate the ResultSets calculateResultSetBtn.ClickButton calculationStartTime = Now() While Not (cash.dlgResultSetCalculationResult.WaitAliasChild("btnOK", 1000).Exists) aqUtils.Delay 5000 ' 5 sec delay Wend calculationEndTime = Now() totalCalculationTime =DateDiff("s",calculationStartTime,calculationEndTime) Call Log.Message("Total time taken in seconds to run the ResultSet calculation for : " & resultSetToCalculate & " is : " & totalCalculationTime) calculateSuccessMsgBtn.ClickButton 'retrieve the name of the ResultSet or folder Log.Enabled = True Call Log.Message("ResultSet" & resultSetNameTemp) Else foundRS = False End If Log.Enabled = False ' Expand the item Call treeView.ClickItem(nodeName) If foundRS = False Then Item.Click Item.Expand End if ' Expand child items If Not (Item.Items Is Nothing) Then Call RunResultSetReportsNewFrom(Item.Items, TreeView) End If Next End Sub The problem seems to occur at the end -after the calculation has taken place i.e. Call treeView.ClickItem(nodeName) If foundRS = False Then Item.Click Item.Expand End if ' Expand child items If Not (Item.Items Is Nothing) Then Call RunResultSetReportsNewFrom(Item.Items, TreeView) End If Next I need to make sure that it goes to the correct item again. Thanks in advance! Joanne18KViews0likes1CommentCannot open project- complaining that script.tcscript file is not a valid script file
Hi, I have been running my automated tests without error for this past month. They were executing successfully on Saturday, now when i try to open the project it complains that Script.tcscript file is not a valid script file. I can;t see what has changed here becasue I haven;t changed anything since 2 days ago. One thing i did try to do was copy the tests across the network to another location then I cancelled it because they were takingt too long. Does anyone know how to rectify this? When I open the project none of the scripts are available even thoughI can see them in the folder in Windows Explorer. Please help- I don't want my project to be corrupted. Thanks!27KViews0likes1Comment