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
Explain in brief about the quicktest professional (qtp) automation object model?
What is file database?
What is RTM (require ment tracebulity marix) fromate?
Step 3&4 are repeated until an the object in recognised uniquely.
What is the registration process and examination fees?
What is the difference between keyword view and expert view?
What are the advantages of Object Repository?
How many tabs are available to view your test in a test pane and what are they?
Define Environment Variable in UFT and its uses?
How to Upgrade or support firefox 2.0 version on QTP 9.0? I have installed QTP 9.0 and installed firefox 2.0. But in REcord and Run Settings, it shows firefox 1.5 in Web tab for browser selection.
in qtp if we record a object and we record the object using virtual wizard then by which way the object is recognized that means recorded
What is the syntax to call one script from another? And what can be the syntax to call one “action” in another?
What are the factors on which script execution time is dependent?
how to i add the values using the check points property?( i.e valid data(for valid data it's giving the footer message:value is added) and for invalid data: special chars, spaces,Duplicates and null values (in my page when ever we enter special chars, spaces and null values, it's giving the proper warning message and for Duplicates it's giving the footer message:"value already exists)?
What is parameter in qtp?