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..
Answer Posted / 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 |
Post New Answer View All Answers
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
hou can we use vb script in qtp could u tell me breafly
This is a question thats generally asked in every QTP interview. What were the problems that you faced during automation and how did you resolve them?
what and how to answer for the question "tell me about yourself ?" for 3 years experience. can anyone say inj detail please... its urgent
diff between qtp versions from 8.5
can any body tell me how i create a simple script and apply output value on it .pls send me a step by step process
What is Test Fusion Report in QTP?
What is test object model in quicktest professional?
how to test load test and block box testing an a web based application pls give ans briefly
Hi any body pls help me for QTP 11.0 software free demo version. i have to practice. Kindly send the link.or where i have to download.
How to add object to object repository in qtp9.0 Suppose for brower yahoo home page
can any boby tell me what is method or steps to connect the remote desk top by using QTP 9.2 version?
How do know the number of browsers opened?
In what occasion we can specify global sheet and action sheet?
how can you do retesting (datadriven test) using notepad amd by using functions NOTE u should not use datatable methods