Ask a Question

how to Store & retrive object name from excel

SOLVED
balathavamani
Occasional Contributor

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

 

 

1 REPLY 1
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")));

cancel
Showing results for 
Search instead for 
Did you mean: