I have 2 Environment variable which holds int. I called
into my test and addedup. but output is concatenating the
values instead of Sum. Ex. Envi("a")= 10, Envi("b") = 20,
c= Envi("a")+ Envi("b"). msgbox c ( Ans.1020). How to
overcome this pblm? I used the add fn also..
Answers were Sorted based on User's Feedback
Answer / neeraj kumar
Hi! Try this code, hope you will get the right answer.....
Environment.Value("MyVariable")=10
A=Environment.Value("MyVariable")
Reporter.ReportEvent micPass, "The value of A: ", A
Environment.Value("MyVariable1")=20
B=Environment.Value("MyVariable1")
Reporter.ReportEvent micPass, "The value of B: ", B
C=A+B
msgbox C
if i am wrong please confirm me back...
Regards
Neeraj Kumar
Is This Answer Correct ? | 3 Yes | 4 No |
How to create an Action Template?
can we run the scripts of qtp 8.2 in the qtp7.0?
what is the difference between Table checkpoint and Database checkpoint in QTP
what is the difference between link and hyper link?
Distinguish between manual testing and automation testing
What is the difference between keyword view and expert view?
How can I change object description or check point values in qtp?
Why you are Using Descriptive programming instead of Object Repository?
Explain me in deatail about DATADRIVEN framework including scripts ?(realtimes plz)(Chandana)
in qtp wha t is synchronisatin pt,what is the maximam time out
I would like to do some certifications in QTP. please suggese what kind of certifications can i do. I am currently put up at chennai. So please suggest some reputed centres where these courses are offered.
I want to test advanced Java applications what kind of add- ins I have to install?