We have 10 rows of records in data table, but we have to run
4th, 5th and 6th rows only. How can we handle this scenario
in QTP?
Answer Posted / sandeep guttikonda
The abouve provided both answers are correct for this case.
Let me add some more to second answer:
In QTP Data Table Methods we have three methods to work on
rows:
1) SetCurretRow
2) SetNextRow
3) SetPrevRow
Here in our case the best method is SetCurrentRow.
1) SetCurrentRow: We can use this method to take a
specified row s current row in run time datatable. By
default QTP points to 1st Sheet 1st Row.
Syntax: SetCurrentRow(Row Number)
Code:
Datatable.SetCurrentRow(4)
For Current_Row = 4 to 6 step
/* To write the data into the datatable
Datatable.value(Current_Row, Column) = "Sandeep"
OR
/* To get data from the datatable.
Cell_Value = Datatable.value(Current_Row, Column)
Next
Note: Here the variable column is respective column number
on which we want to act.
Please le me know if you need any further info.
Thanks.
Regards,
Sandeep Guttikonda
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
In Remote acess server how u run a test?
How to use the object spy in quicktest professional (qtp) 8.0 version?
How you will rate urself in QTP in the range of 0 to 5
Explain the types of properties that quick test learns while recording?
How to creating an output value using quicktest professional?
What is clean sweep?
how to write xml output check point bu useing descriptive programing .means without useing output check point
What is file database?
To which environments does quicktest professional supports?
Differences between quicktest professional (qtp) and winrunner?
Explain advantages and disadvantages kdf?
What should we say if interviewer asks "What is ur project architecture?".......Can any one help me with clear information.?????????
i need to add 1000 users in a domain i written the script for that and it is running successfuly but the problem is that my system is not the user of that domain in which i have to add users so for adding users in that domain i have to install qtp on that another system, can anybody suggest me the way to add those users from my system ultimately i want to know how to access remote computer through script
What is the parameterization?
How to connect to a database?