Calling Action from VBscript.
Hi can anybody tell me how to run particular Action from VBScript. I know how to run the whole test from vbscript but I want to run only particular action from the test.
I am using following script to run the entire test.And it works fine.. Now I just want to run particular action say Action2
Dim qtApp 'As QuickTest.Application
Dim qtTest 'As QuickTest.Test
Dim qtResultsOpt 'As QuickTest.RunResultsOptions
Set qtApp = CreateObject("QuickTest.Application")
qtApp.Visible = True
Set qtResultsOpt = CreateObject("QuickTest.RunResultsOptions")
qtResultsOpt.ResultsLocation = "E:\gaurang\QTP\Res1
Re: Calling Action from VBscript.
No can do. QTP proprietary "Actions" while modular, do not provide the flexibility of a vbScript fucntion.
You need to call a test and optionally pass that test input parameters such that it in turn calls the Action you are interested in executing.
The other strategy you can employ is to put a single Action in each test script.