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
//Entering data in Second row
////Entering data in 3rd row
//Entering data in 4th row
//Entering data in 5th row
//Entering data in 6th row
//Entering data in 7th row
//Entering data in 8th row
//Entering data in 9th row
//Each time selecting the No of Vehicles
[/i]
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"
Browser("FTS ~ Account History").Page("FTS ~ Quarterly Tax Return").WebEdit("ftJursEntityResult[0].tot_tax_").Set "12345"
Browser("FTS ~ Account History").Page("FTS ~ Quarterly Tax Return").WebEdit("ftJursEntityResult[0].tot_paid").Set "1234"
//Entering data in Second row
Code:
Browser("FTS ~ Account History").Page("FTS ~ Quarterly Tax Return").WebEdit("ftJursEntityResult[1].tot_mile").Set "12345"
Browser("FTS ~ Account History").Page("FTS ~ Quarterly Tax Return").WebEdit("ftJursEntityResult[1].tot_tax_").Set "12345"
Browser("FTS ~ Account History").Page("FTS ~ Quarterly Tax Return").WebEdit("ftJursEntityResult[1].tot_paid").Set "1234"
////Entering data in 3rd row
Code:
Browser("FTS ~ Account History").Page("FTS ~ Quarterly Tax Return").WebEdit("ftJursEntityResult[2].tot_mile").Set "12345"
Browser("FTS ~ Account History").Page("FTS ~ Quarterly Tax Return").WebEdit("ftJursEntityResult[2].tot_tax_").Set "12345"
Browser("FTS ~ Account History").Page("FTS ~ Quarterly Tax Return").WebEdit("ftJursEntityResult[2].tot_paid").Set "1234"
//Entering data in 4th row
Code:
Browser("FTS ~ Account History").Page("FTS ~ Quarterly Tax Return").WebEdit("ftJursEntityResult[3].tot_mile").Set "12345"
Browser("FTS ~ Account History").Page("FTS ~ Quarterly Tax Return").WebEdit("ftJursEntityResult[3].tot_tax_").Set "12345"
Browser("FTS ~ Account History").Page("FTS ~ Quarterly Tax Return").WebEdit("ftJursEntityResult[3].tot_paid").Set "1234"
//Entering data in 5th row
Code:
Browser("FTS ~ Account History").Page("FTS ~ Quarterly Tax Return").WebEdit("ftJursEntityResult[4].tot_mile").Set "12345"
Browser("FTS ~ Account History").Page("FTS ~ Quarterly Tax Return").WebEdit("ftJursEntityResult[4].tot_tax_").Set "12345"
Browser("FTS ~ Account History").Page("FTS ~ Quarterly Tax Return").WebEdit("ftJursEntityResult[4].tot_paid").Set "1234"
//Entering data in 6th row
Code:
Browser("FTS ~ Account History").Page("FTS ~ Quarterly Tax Return").WebEdit("ftJursEntityResult[5].tot_mile").Set "12345"
Browser("FTS ~ Account History").Page("FTS ~ Quarterly Tax Return").WebEdit("ftJursEntityResult[5].tot_tax_").Set "12345"
Browser("FTS ~ Account History").Page("FTS ~ Quarterly Tax Return").WebEdit("ftJursEntityResult[5].tot_paid").Set "1234"
//Entering data in 7th row
Code:
Browser("FTS ~ Account History").Page("FTS ~ Quarterly Tax Return").WebEdit("ftJursEntityResult[6].tot_mile").Set "12345"
Browser("FTS ~ Account History").Page("FTS ~ Quarterly Tax Return").WebEdit("ftJursEntityResult[6].tot_tax_").Set "12345"
Browser("FTS ~ Account History").Page("FTS ~ Quarterly Tax Return").WebEdit("ftJursEntityResult[6].tot_paid").Set "1234"
//Entering data in 8th row
Code:
Browser("FTS ~ Account History").Page("FTS ~ Quarterly Tax Return").WebEdit("ftJursEntityResult[7].tot_mile").Set "12345"
Browser("FTS ~ Account History").Page("FTS ~ Quarterly Tax Return").WebEdit("ftJursEntityResult[7].tot_tax_").Set "12345"
Browser("FTS ~ Account History").Page("FTS ~ Quarterly Tax Return").WebEdit("ftJursEntityResult[7].tot_paid").Set "1234"
//Entering data in 9th row
Code:
Browser("FTS ~ Account History").Page("FTS ~ Quarterly Tax Return").WebEdit("ftJursEntityResult[8].tot_mile").Set "12345"
Browser("FTS ~ Account History").Page("FTS ~ Quarterly Tax Return").WebEdit("ftJursEntityResult[8].tot_tax_").Set "12345"
Browser("FTS ~ Account History").Page("FTS ~ Quarterly Tax Return").WebEdit("ftJursEntityResult[8].tot_paid").Set "1234"
//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