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 |
Dear All , For UFT 12.02 which version QC or ALM will support ? Thanks Balaji
In how many ways we can add check points to an application using QTP.
What is qtpro? What is a quick test professional?
hi guys we r working in office...we write some scripts..suddenly we have a work(5min only) in out side..what will do now,,,used to system shut down or log off or lock or sleep mode,switch use or hibernate?
types of output value in details.
Problem with XML checkpoint in QTP ?
can we test an windows application using qtp
How can i Save the snapshots in a specified folders using Scripting in QTP?
can u write one user defined function for webedit class.
What is the regular expression for Yahoo mail Inbox?
why was automation used in the project?
I used child objects to get the no of weblist present in the weblist.now i need to select the items present in each weblist ?How to do so