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
What is synchronization? What are the ways you can synchronize?
Write the code for,In the page screen we have total 10 Links,out of these I have to click 9th link
Explain in brief about the quicktest professional automation object model?
I want to configure the OR and library files to a particular QTP test during run time. Note: OR and Library files are located in Quality Center. Is it possible in QTP? Anybody having code?
How will you test a keyboard?
What are the trigger events in qtp?
Is it possible to call from one action to another action in qtp?
If created one virtual object? Next time I changed the window position will it work?
what is run-time data?
What is a programmatic description?
Explain how Does Run time data (Parameterization) is handled in QTP?
Is any limitation to xml checkpoints?
Functions call by reference and call by value. i want the diff b/n these 2 and how will be the script for this?in which situation we use these 2..?pls explain me clearly
Hi Every body please explain me in steps to use checkpoints and object Repositories in QTP for Flight Reservation application please tell me the steps for this its urgent pls thanx for urs answers
how interviews will be on QTP?