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
What is qtpro? What is quick test pro? What is a quick test professional?
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.
What ate the Technologies supported by QTP?
Write a script to customize the test results in PDF and HTML format.
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?
What are test settings and global settings?
What is recovery scenario manager? When you go for recovery scenario manager? Tell me one scenario were your used recovery scenario in your project?
On the website, the protocol has been changed https: to https what you will do? Tell me your approach?
What is file database?
hou can we use vb script in qtp could u tell me breafly
whow much strong on VB and C?
write the vb script for call to new action in qtp?
in my application,validation message has in japanise language.how to validate this message is appears properly or not
Explain the N-tire structure(process) for Funds Transfer ( means give N ways to funds Transfer in an Application)
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.