Action Name parameterization
I have added various reusable actions to my main action.
But the action which needs to be executed is decided based on value in excel sheet.
Hence In, the following action:RunAction "AccountingPeriodSummary [AccountingPeriodSummary]", oneIteration
I would like to replace AccountingPeriodSummary with Trim(DataTable("TestCaseName","Global"))
Can you please suggest how can this be done.I am not able to concatenate " at the beginning.
Re: Action Name parameterization
Below solution is possible if you are using QTP 10.
Get the Test type
TestType = DataTable.Value("TestType",dtGlobalSheet)
'Load and call the Action
LoadAndRunAction "C:\Framework\Tests\Actions", TestType
If you are using 9.2 o 9.5 versions.
Please refer tarun article at below urls: