cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to make a 'ClickItem Action (TreeView Controls)' Data-Driven?

Highlighted
New Contributor

Is it possible to make a 'ClickItem Action (TreeView Controls)' Data-Driven?

Is it possible to make a 'ClickItem Action (TreeView Controls)' Data-Driven?



I want to be able to create a data-driven test using a DDT Driver(

ExcelDriver)and I am wondering how I can accomplish that.



Example:

Call vista.TcxPopupEditPopupWindow.cxTreeView1.TcxCustomInnerTreeView.ClickItem("|System|Administration")



Thank you


Brad L.
2 REPLIES 2
Highlighted
Contributor

Hello Brad,



You could easily make the string  "|System|Administration" in your example as an input from an excel sheet using the DDT excel driver.




Set My_Exl_Driver = DDT.ExcelDriver(FilePath,"TestData", False)   


Do 

  vista.TcxPopupEditPopupWindow.cxTreeView1.TcxCustomInnerTreeView.ClickItem(My_Exl_Driver.Value("Tree_Node_To_Click"))



My_Exl_Driver.Next

Loop Until My_Exl_Driver.EOF




' "Tree_Node_To_Click" is the column name in the excel sheet.





Is that what you are looking for?




Thankyou

Syed Ahmed Safvan

Highlighted
New Contributor

Hi Ahmed,



That is exactly what I was looking for.  Thanks for your help, it is much appreciated.

Brad L.
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors