Answer Posted / babu
Hi,
File->Setting->Environment
Selected User defined functions and added the variables "a"
with value 10 and "b" with value 10.
click on apply
open new test.
Dim c
c = a+b
msgbox c
I am not getting the result as 20.
Whether the scenario what i executed is wrong.
If yes, please elaborate how&what is the use of environment
variables.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
I used the below code to open QTP through VBscript?But i can unable to Invoke QTP...PLZ help me with the correct code to invoke QTP through VBS with description of the code aswell. Dim qtApp 'As QuickTest.Application 'Declare the Application object variable Dim qtTest 'As QuickTest.Test 'Declare a Test object variable Dim qtResultsOpt 'Declare a Run Results Options object variable Set qtApp = CreateObject("QuickTest.Application") 'Create the Application object qtApp.Launch 'Start QuickTest qtApp.Visible = False 'Make the QuickTest application visible qtApp.Open "C:\form", True 'Open the test in read-only mode 'set run settings for the test Set qtTest = qtApp.Test qtTest.Run 'Run the test 'WScript.StdOut.Write "Status is: " & qtTest.LastRunResults.Status 'Check the results of the test run qtTest.Close 'Close the test qtApp.quit 'Close QuickTest Pro Set qtResultsOpt = Nothing 'Release the Run Results Options object Set qtTest = Nothing 'Release the Test object Set qtApp = Nothing 'Release the Application object
What are the steps involved in the recovery scenario wizard?
How software automation specialist enter steps in the Expert View?
Hi Friends, Can anyone help me out in this one? In QTP, I am using Data Driver and want to parameterise multiple values (say 3 values ) for a field. How can I do it using Data Driver wizard? Plz mention it step-by-step. In the end after doing the needful, on opening the Data Driver window, how can I get number (i.e. 3) in the Parameterised column for that particualr value? Thanks a lot in advance.
What are the challenges u faced in testing with crm domain? How u overcome with?
How many types of parameters are available in quicktest professional?
what is keyword driven testing in qtp?n how is it useful?
i have doubt suppose iam purly working in manual, when i will get work to do on sql and performence testing? pls any one clarify doubt?
How QA specialist can identify when programmatic descriptions are useful?
how to download mercury qtp9.2 ny internet ?
Is virtual object supported in low level recording mode?
Is it possible to merge two object repository files in qtp?
How you debug your script?
Both static and dynamic arrays are handled by the vb script. Is it true?
What is the expert view?