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


Please Help Members By Posting Answers For Below Questions

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

2169


How to create a standard checkpoint ?

559


What are output values and why they are used ?

627


What is the qtp testing process?

599


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..

1353






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?”

587


Explain in brief about the quicktest professional (qtp) automation object model?

570


Explain the concept of how quicktest professional (qtp) identifies object?

577


What is difference between run time object and test object?

558


what is the difference between development and testing

2392


What is the use of sendkeys and what are send keys

1955


What is the differences between image check point and bit map check point?

581


What is Associate Repository in QTP 9.2 ?

603


Have you used xml check point in your project?

556


What are the differences between quicktest professional (qtp) and winrunner?

574