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?
Answer Posted / manjunathareddy
First Define User-Defined internal environment variable
To define an internal environment variable follow the steps
below
• Open the test in which you want to define the variable
• Navigate to File >> Settings >> Environment
• From the variable type drop down, select User-defined
• Click the plus button on top right
• In the pop-up you add name (variable name) say a and
value (variable value) say 10
• Again Click the plus button on top right
• In the pop-up you add name (variable name) say b and
value (variable value) say 20
• Click OK
-------------------------------------------------------
Dim c
c=Environment.Value("a")&Environment.Value("b")
Msgbox c
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Describe synchronization point.
What is recovery scenario manager? When you go for recovery scenario manager?
Hi All, I have QTP installed on my machine but the application under test (AUT) is on remote desktop.My scenarios is like that,it should contain following steps. 1)Automatically it should click on start and then on remote desktop connection. 2)it should enter the IP address and then connect to remote desktop. 3)and then it should be able to record the application in remote machine and then run it also. Can somebody tell me how to record the application which is in remote machine.
How to interact tool & application build in QTP?
What are metrics and matrix?
There is an excel file of 1 to 100 sheets how you will iterate through it?
What are the challenges u faced in testing with crm domain? How u overcome with?
How can you close the second opened browser?
How is UFT 11.5 version different from UFT 12.0?
how to evalute defects in QTP script?
How to test background color and dynamic images during run time can you put the check point for moving objects?
What is active screen?
Limitations in QTP?
X flies from Hyd to bangalore using different methods of transportation. write the test scenarios and test cases for this?
What is data driver in qtp? Where we use it?