I am just a beginner in QTP. Could any one explain me in
detail how to automate adding two numbers and getting the
result in QTP. Also I would like to parameterize the
inputs. I have tried but getting an error like 'Can't use
sub.....'(can't recollect the exact error)
Answer Posted / sailaja
One way is:Dim a,b,c
a=10
b=20
c=a+b
msgbox c
Anotherway:Place the input parameters in these: edit-
>Action Properties->Parameetrs->Here we can add input &
outputparametrs.
Dim a1,b1
a1=Parameter("a")
b1=Parameter("b")
c=a1+b1
msgbox c
Aliter: Add the values of both a,b of parameters in Action
Properties.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How you can make an action as re-usable action?
How to use reporter.report event in qtp ?
Hybrid framework supports Descriptive programming. Is it true?
Where is the resultset of a sqlquery (which is fired by rsobj.open sqlquery,xxxx,xxxx) stored ?
A FORM CONTAINS 5 FIELDS. 1 FIELD IS ENABLED REMAINING(4) FIELDS DISABLED. MY QUESTION IS ENTER VALUES INTO 1 FIELD AFTER THAT CLICK TAB BUTTON THEN 2 FIELD ENABLE THIS PROCESS CONTINUE UPTO 5TH FIELD. HOW TO WRITE CODE IN DESCRIPTIVE PROGRAMMING. PLZ TELL ME THE PROCEDURE AND CODE FOR IT.
How many types of object repository in qtp?
Tell me about your project? please help me how to tell about insurance project
How to handle Java tree in QTP?
When using descriptive programming?
1--How many functions u develop 2--What is an array 3-- where is ur server 4--U involved in unit testing 5--how ur test the background colour using QTP
How to remove associated function library?
please post the interview questions for QA position in FACTSET
How smart identification works in qtp ?
What is a data driven test in qtp?
Hi all, I am using windows vista, I am in the process of learning QTP. When ever I try to work with insert mode in flight application , i am getting the error of 'Operation must use an update table query, fractional truncation(null) error. Can anyone help me regarding this?