Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Search in Excel / DataTable
#1
Solved: 11 Years, 5 Months ago
Hi again,

I would like to use QTP to verify whether my application has worked correctly with the data I putted in. Therefore I thought to compare the resulting data with the one, I say it has to be right.
The easiest way to do this would be to compare an Excel-Sheet generated by the application, with the Excel-Sheet containing data I defined.

Now I only want to compare one line in the resulting Excel-Sheet with my Excel Sheet. To find this row I need to search in one column of the sheet for a certain value. In Excel this would be no problem. But with QTP I do not know how to implement this.

I thought it would be good to import both Excel-Sheets into my QTP-test, search for the row and then compare each value in that row the ones of the other sheet.

This works so far. But I did not find a way to really search for a value in the sheet within the DataTable in QTP. For now I did it with a for-statement, iterating through the rows... but this is quite slow...

Is there a function in QTP to search within the DataTable? Or is there a better way to do what I like to do?

Thanks in advance.
Reply


Messages In This Thread
Search in Excel / DataTable - by idolast - 01-22-2008, 06:41 PM
RE: Search in Excel / DataTable - by idolast - 01-23-2008, 05:38 PM
RE: Search in Excel / DataTable - by newqtp - 01-23-2008, 11:21 PM
RE: Search in Excel / DataTable - by vramu1 - 01-24-2008, 06:32 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  CyberArk CorePAS REST API to search for accounts pramod 0 866 06-29-2023, 03:11 PM
Last Post: pramod
  Search All Test scripts For a Function? AndyBSG 1 2,785 02-19-2015, 04:15 AM
Last Post: supputuri
  Search for a string in all the files under all subdirectory Mahesh27 1 2,245 07-03-2013, 03:24 PM
Last Post: Sathiya
  Testing Search box kriday 1 2,555 06-26-2013, 08:51 AM
Last Post: basanth27
  Search for a word in excel string QAVA 6 9,461 11-23-2012, 11:17 AM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 2 Guest(s)