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 / rayudu

a= inputbox("Enter the value a")
b=inputbox("Enter the value b")
c=int(a)+int(b)
msgbox c

Is This Answer Correct ?    15 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is qtpro? What is quick test pro? What is a quick test professional?

586


I want to know what are QTP functons and what are VB script functions. What is the difference between them.When we have to use these functions.

1298


What ate the Technologies supported by QTP?

641


Write a script to customize the test results in PDF and HTML format.

2082


An action has both shared and local OR associated with it and both have the same object in them. In the test which one will be considered?

568






What are test settings and global settings?

577


What is recovery scenario manager? When you go for recovery scenario manager? Tell me one scenario were your used recovery scenario in your project?

568


On the website, the protocol has been changed https: to https what you will do? Tell me your approach?

580


What is file database?

1688


hou can we use vb script in qtp could u tell me breafly

1734


whow much strong on VB and C?

1482


write the vb script for call to new action in qtp?

1857


in my application,validation message has in japanise language.how to validate this message is appears properly or not

1516


Explain the N-tire structure(process) for Funds Transfer ( means give N ways to funds Transfer in an Application)

1631


i have a doubt can anyone tell me where are scripts stored while using QTP.Tell me the exact procedure takes place in real time?like how we call scripts how to proceed after writing scripts?how scripts are executed etc?i heard some use Qc whether others dont use.so tell me whole procedure for both the things it will be a very big help.as i have interview i want to have whole idea on this.its very urgent.

1380