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 retrive XML file data in QTP ? using Script(Chandana)
GET WHETHER THE GIVE NUMBER VALID OR NOT IN BETWEEN THE GIVEN RANGE?IN VB SCRIPT(QTP)
how can we preform retesting(DATA driven test) using function please gine the code for loginpage
How do we call Library Files(.vbs) in the Test Script Thanks in Advance...
I want to assign values in a table in my software, in first column i will give values, table is of 4x4 i.e 4 row and 4 columns, i m using VBScript in my automation work. it is a simple table for giving values.
what is the extension of action script template?
what is key word driven frame work how to use keyword driven frame in QTP in a project
Why do we use breakpoints in QTP?
What is VSS? Is it used in Automation(QTP) Or Manual? what is menus in VSS?
What are they Advantages and Disadvantages in QTP 9.2?
With what extension you can save the list of tests in a file to run in test batch runner?
what r the main attributes of test automation?