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 test automation improve test effectiveness?
Explain the checkpoint in qtp?
How to use Environment parameterization? Explain with an example.
how can we do the frame work in qtp
How you know that a test case is a regression test case
Both static and dynamic arrays are handled by the vb script. Is it true?
Can we Test Welcome Screens and Process Images with QTP
Differentiate the type of test cases which can be automated and which cannot be automated?
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 difference between the modular framework and datadriven frame work
What is throw Object?
how will you load the test cases in ddt?
wht type of User defined functions or Java Releated functions Do we write in VB scripting
How to create scenario selector
what could go wrong with test automation?