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 |
Is any limitation to xml checkpoints?
what is key word driven frame work ? why it is called like that ? what is the diference between keyword driven and data driven frame work ?
If you are using descriptive programming and you have two objects with the same name, so you are identiying them by name and index, how can you avoid errors if a third object with the same name is added at the begining of the page?
. My application is updating the user information in the application. Every time it is Adding on record in my application and Validating the information like “Record has added successfully”. Which Check point I have to put in this situation? Why?
what is the difference between the modular framework and datadriven frame work
Why VB scripts are used in QTP and TSL in Winrunner, is there any advantage of using VB Scripts
What is difference between Quality centre and Test Director?
How to integrate the qualitycenter with qtp
What are the different kinds of test steps?
how to write xml output check point bu useing descriptive programing .means without useing output check point
How to execute a winrunner script in quicktest professional?
how to count the word "IS" is repeated in the application using DP
3 Answers DST Global Solutions,