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
Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.
Give me detailed theritical explanation about keyword driven, hybrid framework, environment variables, hybrid frame work
Suppose you are using shared objects repository in your test and you want to split your present action? At that time shared object repository is single or it’s also splits?
In Remote acess server how u run a test?
Explain different recording modes?
Output values? i want a practical example
If we put all properties in mandatory and assistive list of Normal Identification, Do we still need Smart?
Hi, I got error message as "object does not support this property or method: "Test.Actions" when i execute the following line of script on QTP 9.0 Dim qtApp, qtRep Set qtApp = CreateObject("QuickTest.Application") Set qtRep = qtApp.Test.Actions("Action1").ObjectRepositories Can anyone tell me where i am wrong.
What are the advantages of parameterization ?
How to automate a script in mainframes environment? I have the terminal emulator Add in. Describe in detail.
how to write the descriptive programming in QTP for remove the object value and substitute, with a variable then call the validation from excel
i am a begnner so am learning Error handling :tried using Recovery manager didnt work i want to be able to handle errors , e.g. if while running the test the folwoing does not show up then how can i use the If then else and goto next step in the test, as in many scenarios it does not show up Browser("The Shopping Channel -").Page("The Shopping Channel -_8").Image("easy pay").Click
hi all can anyone explain how to write the code for finding the mandatory columns in table which are having (red*) (red Astrik)
What is the extension of the recovery scenario file in qtp?
Explain the concept of object repository and how quicktest professional (qtp) recognises objects?