Parameterization on desired no. of rows in DataTable - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: Parameterization on desired no. of rows in DataTable (/Thread-Parameterization-on-desired-no-of-rows-in-DataTable) |
Parameterization on desired no. of rows in DataTable - geet - 03-02-2010 Hi, I need to search the books in a search page, and i have the book ID in a local sheet of the data table. Now i want to control the no. of items to be searched through the configurable value in variable. Can you please help me out by explaining how this can be done? Or How can i configure the no. of datatable iterations in my QTP code? RE: Parameterization on desired no. of rows in DataTable - sreekanth chilam - 03-02-2010 Hi Geet, I would suggest you to follow any of the below couple of ways for your query. Way1 : Go to Keyword View > Select 'TestFlow' from Action Toolbar, then Right Click on required Action , select "Action Call Properties" > choose "Run on All rows" & click OK. Now re-execute the script & see... Way2: Refer the below code, implement accordingly & re-execute and see Code: For i=1 to Datatable.GetSheet("required Action").GetRowCount RE: Parameterization on desired no. of rows in DataTable - geet - 03-03-2010 Thanks a lot Sreekanth, this code really helped me. |