Forum Discussion

lacherb's avatar
lacherb
New Contributor
15 years ago

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


2 Replies

  • 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

  • lacherb's avatar
    lacherb
    New Contributor
    Hi Ahmed,



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