IN EXCEL SHEET OF qtp SUPPOSE I ENTERED 10 NUMBERS RANDOMLY
I HAVE TO GET TOTAL OF TEN NUMBERS IN THE 11 COLUMN USING qtp
GIVE CODE TO IT USING qtp
Answer Posted / sudha sharma
Pre Condition : Enter 10 randon numbers in the datatable of
QTP. Write down the following code :
For i=1 to 10
datatable.SetCurrentRow(i)
total=cint(datatable.Value(1,1))+total
Next
datatable.SetCurrentRow(i)
datatable.value(1,1)=total
The total of 10 random numbers get posted in the run time
data table. You can view it through automation -> results -
> run time data table.
This is for QTP data table. If the data is in the excel
sheet then you have import the data.
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Want to verify notepad reports using QTP framework or any other BV script method. Can anyone share the method to achieve it? Eg. Person Name is the header and the actual name is John then how can we verify weather person name is John
How to create a standard checkpoint ?
What are output values and why they are used ?
What is the qtp testing process?
Hi could some one explan what is the use of the function Defination generator, And how to use the function defination generator.. Explan with the example..
I have developed and executed a script successfully, and saved the same to QC. When I tried to execute the script from QC, the script is not executing. What are the possible reasons?”
Explain in brief about the quicktest professional (qtp) automation object model?
Explain the concept of how quicktest professional (qtp) identifies object?
What is difference between run time object and test object?
what is the difference between development and testing
What is the use of sendkeys and what are send keys
What is the differences between image check point and bit map check point?
What is Associate Repository in QTP 9.2 ?
Have you used xml check point in your project?
What are the differences between quicktest professional (qtp) and winrunner?