hi,
i was adding the two numbers in qtp scripts but i didn't get
the answer. see my below script, i dont know wht is the problem.
i passed the value a=3 b= 2, i got the ans 32 instead of 5.
i thing the problem is to be c = a+b
my mail id karthis4u@gmail.com
Dim a, b, c
a = inputbox("enter the a ")
b = inputbox("enter the b ")
c = a + b
print c
Answer Posted / praveen
Dim a, b, c
a =3
b =2
c = a + b
msgbox c
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is business process testing(bpt) in qtp?
When to use shared and local object repository?
how will you load the test cases in ddt?
Get the count of files of similar types from a folder.
Explain different types of checkpoints?
What are the challenges you faced during you entire life automation ?
How can I find out the cursor position through QTP suppose I am keep tabbing(Pressing the tab key continuously) and stoped at a position Now I want to find out where the cursor position is
i'm using the qtp to test to vb appliction,i wanted to get the new application's title.i didn't want to use the winAPI to get it ,i 'd like to know whether a QTP function can do it. Eg: SystemUtil.Run "C:\Program Files\.....","","","" 'run an application, and misure the application is activating,then how to get the hwn wihtout using windowns api
If I change the object name in one action will it be updated in all the actions? Or not?
hi all can any body explain how to write the script for finding the mandatory fields which are having [red Astrik sign (*)]
You will receive the mail in your outlook from client at night time to go ahead for the execution. Based on the mail you need to trigger the batch run. What is the QTP Code for this?
What test cases can you automate using QTP?
what is profile tool?
Hi All, I have QTP installed on my machine but the application under test (AUT) is on remote desktop.My scenarios is like that,it should contain following steps. 1)Automatically it should click on start and then on remote desktop connection. 2)it should enter the IP address and then connect to remote desktop. 3)and then it should be able to record the application in remote machine and then run it also. Can somebody tell me how to record the application which is in remote machine.
What is the use of running the scripts in Hidden-mode in UFT?