Forum Discussion

balathavamani's avatar
balathavamani
Occasional Contributor
10 years ago

how to Store & retrive object name from excel

Hi Everyone,

 

How to retrive Object name from excel using DDT Testing in testcomplete.

 

Scenario: Need to save object name of Test Application in Excel file & retrvie them when test runs.

Ex: Save window name in excel & retrive it : (Sys["Process"]("Testedapp")["WPFObject"]("HwndSource: MainWindow", "MainWindow"));

 

How to achive this ? any one plz help me out to resolve this issue ?

 

please find the error iam  getting while tried the above case. 

 

Testcomplet_issue.JPG

 

Thanks

Bala

 

 

  • (Sys["Process"]("Testedapp")["WPFObject"]("HwndSource: MainWindow", "MainWindow"));

    is a string TC do not recognize it as an object in your screen

    try Eval( (Sys["Process"]("Testedapp")["WPFObject"]("HwndSource: MainWindow", "MainWindow")));

  • NisHera's avatar
    NisHera
    Valued Contributor

    (Sys["Process"]("Testedapp")["WPFObject"]("HwndSource: MainWindow", "MainWindow"));

    is a string TC do not recognize it as an object in your screen

    try Eval( (Sys["Process"]("Testedapp")["WPFObject"]("HwndSource: MainWindow", "MainWindow")));