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 |
1. wat are the main diff b/w QTP 8.0 AND QTP 9.2 ( not user interface) 2. wat is the meaning of Keyword in keyword driven frame work? 3. how u will handle the unknown errors while exucution. (not recovery scenario)
What is the file extension of the code file in qtp?
How do u do batch testing in WR & is it possible to do in QTP, if so explain?
How does qtp identify gui object?
What are the types of Object Repositories in QTP?
1.Write a CRITICAL test cases for calculator ? 2.What is the difference b/w FRS and SRS documents ? 3.What is Component ? 4.What is object ? 5.what is the difference b/w static and dynamic descriptive programming ?
How can we do this one ? at runtime qtpwindow and browser aren't disply on monitor (or) aren't visible on desktop?how?
It is given in the help of QTP 9.2 that we cant debug the scripts. Is there any other way to VIEW, PAUSE and make modifications in the scripts during execution???
How to get line numbers in your editor in expert view?
Explain how you can delete excel file in qtp?
Explain about random testing of 500 test cases?
How to find the difference between 2 dates in qtp?