UFT-API: How to write the output of a select data action to the test's data source

0
0

In a uft-api test I have a select data component that returns the query results. The results comeback in an array and I’m trying to figure out how to write the results back to the test’s data pane, either excel or local table.

enter image description here

  • You must to post comments
0
0

You can use GetDataSource Class of UFT API ,
it will work like this lets say you imported excel from FlightSampleData.xls, and named it as FlightSampleData, you have <input> sheet, accessing the sheet will be like below:

GetDataSource("FlightSampleData!input).Set(ROW,ColumnName,yourValue);
GetDataSource("FlightSampleData!input).Get(ROW,ColumnName);

I recommend you go to help section of UFT , there are many valuable documents that we thought we never had. all the object reference is out there .

  • You must to post comments
Showing 1 result
Your Answer
Post as a guest by filling out the fields below or if you already have an account.
Name*
E-mail*
Website