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
what is error and fault in terms of software quality?
Explain the views in the QTP GUI?
Whats the realtime QTP testing process
I want to grow as a Automation Engineer,Kindly help me in clearing my interview that what interviewer looks for as a Automation Engineer. I am having three years of experience in testing.
Where to use function or action?
i have doubt suppose iam purly working in manual, when i will get work to do on sql and performence testing? pls any one clarify doubt?
Which features or drawbacks of QTP lead to the upgrade for a newer version?
Explain qtp(quick test professional)?
When you open QTP, how many sheets you can see?
tell me abt a time when u had to go above &beyind the call of duty to get the job done
What is recovery scenario manager? When you go for recovery scenario manager?
how do u manipulating INI, DLL and / or registry files in support of your test environment? actually what do u mean by INI and DLL or registry files. plzzz its urgent do answer
after initiating one project for testing, when exacltly QTP tester role starts?
Explain the check points in quicktest professional (qtp)?
How to change the priorities of the recovery scenario properties?