![]() |
QTP parametrizing - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: QTP parametrizing (/Thread-QTP-parametrizing) |
QTP parametrizing - rajuabi2000 - 10-22-2008 Hello there. I am very new to QTP so i have some issues with parametrize data. In my application, there is this input field values where we could enter the following. 1. Total Miles 2. Taxable Miles 3. Total Gallons So when a user logs in, he has to enter such rows for different states. So i want to write a code such that i have the option of selecting "n" rows from the data table and input those values into the application. Thanks in Advance man. So the code is similar to //Entering data in First Row Code: Browser("FTS ~ Account History").Page("FTS ~ Quarterly Tax Return").WebEdit("ftJursEntityResult[0].tot_mile").Set "12345" //Entering data in Second row Code: Browser("FTS ~ Account History").Page("FTS ~ Quarterly Tax Return").WebEdit("ftJursEntityResult[1].tot_mile").Set "12345" ////Entering data in 3rd row Code: Browser("FTS ~ Account History").Page("FTS ~ Quarterly Tax Return").WebEdit("ftJursEntityResult[2].tot_mile").Set "12345" //Entering data in 4th row Code: Browser("FTS ~ Account History").Page("FTS ~ Quarterly Tax Return").WebEdit("ftJursEntityResult[3].tot_mile").Set "12345" //Entering data in 5th row Code: Browser("FTS ~ Account History").Page("FTS ~ Quarterly Tax Return").WebEdit("ftJursEntityResult[4].tot_mile").Set "12345" //Entering data in 6th row Code: Browser("FTS ~ Account History").Page("FTS ~ Quarterly Tax Return").WebEdit("ftJursEntityResult[5].tot_mile").Set "12345" //Entering data in 7th row Code: Browser("FTS ~ Account History").Page("FTS ~ Quarterly Tax Return").WebEdit("ftJursEntityResult[6].tot_mile").Set "12345" //Entering data in 8th row Code: Browser("FTS ~ Account History").Page("FTS ~ Quarterly Tax Return").WebEdit("ftJursEntityResult[7].tot_mile").Set "12345" //Entering data in 9th row Code: Browser("FTS ~ Account History").Page("FTS ~ Quarterly Tax Return").WebEdit("ftJursEntityResult[8].tot_mile").Set "12345" //Each time selecting the No of Vehicles Code: Browser("FTS ~ Account History").Page("FTS ~ Quarterly Tax Return").WebEdit("qtrTotEntity.qv_num").Set "3" [/i] Code: Browser("FTS ~ Account History").Page("FTS ~ Quarterly Tax Return").WebButton("Continue").Click |