iterations with parameterized component
I have a component which calculates the total income of the family by adding up the total income of the individual family members.
The input parameters to this component are:
a> salary income
b> property income
c> other sources
The output parameter of the component is
I want to iterate this component three times for each member of the family, take the individual total income, add all the income and output the value in "familyincome" parameter.
Can you please help me to write the script where I can loop the iterations of the component?
Note: I am using QTP8.0
Re: iterations with parameterized component
I think the best solution is to use the Global Datatable in order to iterate on all family members (three) and "update" the falimityincome in the local sheet.
you should have one param in the local sheet for the total income and at the end of the action update it DataTable.Value("Total") = update it DataTable.Value("Total") + "the new value"