Forum Discussion

ajay_bishnoi's avatar
14 years ago

TestComplete cannot identify Tree children

Hi,



In my application, when I search for records in ‘Job’ explorer (Left most on the screen shot) by supplying * in the search field then all the records are retrieved from the database and populated under the ‘Database’ tree as children. But Test complete cannot identify these children (e.g. “ExistsTimeseries”) under the ‘Database’ root node, if I use ‘Object Spy’ or try with ‘Object browser’.

 


Query1:- How can I select a particular node under a tree using TestComplete?


In the tree when I click on the child (e.g. ‘06/05/2011 15:00:00’) of ‘ExistsTimeseries’ then it’s properties are displayed in ‘Properties’ box (Right most of the screen shot).


Query2:- How can I read property value (e.g Succeeded =True) in ‘Properties’ box using TestComplete? (Query 1 is quite important, i can raise Query 2 separately, if you suggest)


I am recording my test in ‘Script’ mode and TestComplete is recording the dimensions of screen instead of finding the children of the tree.


Please have a look at below script code for better understanding.  


Call TestedApps.DHI_Solutions_Shell.Run(1, True)


  Set DHI_Solutions_Shell = Aliases.DHI_Solutions_Shell


  Set main = DHI_Solutions_Shell.DSS_Planning


  Set toolStripContentPanel = main.toolStripContainer.ToolStripContentPanel


  Set tabControl = toolStripContentPanel.ZoneSequence_1.WindowContentTabbed.TabControl


  Call tabControl.Click(111, 631)


  Set jobExplorer = tabControl.JobExplorer


  Set textBoxWithDefault = jobExplorer.zQueryBuilderJobExplorer.tbSearchQuery


  Call textBoxWithDefault.Click(64, 12)


  Call textBoxWithDefault.SetText("*")


  Call textBoxWithDefault.Keys("[Enter]")


  Set treeControl = jobExplorer.zTreeControlJob


 


  Call treeControl.Click(75, 26)


  Call treeControl.ClickR(75, 26)


  Call treeControl.Keys("[Down][Down][Down][Enter]")


  Set panel = DHI_Solutions_Shell.JobScheduler.zpnlJobScheduler


  Set tabControl = panel.ztabControlScheduler


  Call tabControl.ClickTab("Settings")



Looking for you help.

Thanks in advance.



Best regards

Ajay

1 Reply