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 |
How to parameterize a text field and the same field as combo field on next page. Means inserting values in Text field will appear in the combo field. for example country name, state name. Kindly reply it is urgent !!!
pls tell me how will you write the vb script in QTP for DataDriven test from Excel sheet for multiple userid and password explain with example
recording is not a good programming practice.How to write effective script without recording.Which is the correct method explain in detail
What is the use of environment variables?
WHAT IS THE USE OF "FUNCTION GENERATOR" IN QTP?
how i can get the value of label box , please any body tell me script of that code
where do you store the test result?
HOW do we find a datasheet when there are 4 datasheets in data table.this question was asked by covansys interview.
I want to open a Google page without recording a test and i do not want to use system.Util.run command as well how do i do this?
when we enter url,one page should open.write a vb script ,that page is open or not
2 Answers Blue Chip India, Persistent,
How will u integrate oracel with QTP?
hi what is the use of "dim" in automation objective model or any where what is the use of "dim" plz tell me