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
Can any body please tell me the steps of keyword driven frame work in qtp. My mail is saswat445@gmail.com please send some materials on keyword driven testing in qtp. thanks a lot...
What should we say if interviewer asks "What is ur project architecture?".......Can any one help me with clear information.?????????
Hi All , How can we decicde for pariticular frame(DataDriven or Keword Driven)in Project? Thanks Balaji
how to idetfy which test cases are automated?who will deside that plz tell me
What is checkpoint in qtp?
Anybody plz give, How do you test aframe in a web page? If page cotain text message or Images, tables?
if numbers are always changing write a script for that
Dear sir, i want to perform a QTP automated testing for mechancial engineering software like msc adams, msc nastran this softwares will help for mechanical engineering design analysis>> i know oad runner win runner, test director, QTp>> but i dont know how to use for automation
What is the extension of QTP local Repository? If it is .mtr then what is .bdb extension stands for?
What is the use of Debug Viewer?
Explain the features and benefits of quick test pro(qtp)?
How does qtp identify gui object?
An action has both shared and local OR associated with it and both have the same object in them. In the test which one will be considered?
Thanks....But can u tell me how i use the QTP for GIS with one Example...
in a web page How to check and display a particular word from a paragraph?