Syntact for how to call one script from another? and Syntax to call one "Action" in another?



Syntact for how to call one script from another? and Syntax to call one "Action" in anothe..

Answer / vandana sharma

RunAction ActionName, [IterationMode , IterationRange , Parameters]

Here the actions becomes reusable on making this call to any Action.

IterationRange String Not always required. Indicates the rows for which action iterations will be performed. Valid only when the IterationMode is rngIterations. Enter the row range (i.e. "1-7"), or enter rngAll to run iterations on all rows.

If the action called by the RunAction statement includes an ExitAction statement, the RunAction statement can return the value of the ExitAction's RetVal argument.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

Can you write User defined function for WebEdit ? Note1: This function can be used for all web edits in all pages Note2: Don't use Child objects method

1 Answers   IBM,


Hi, I got error message as "object does not support this property or method: "Test.Actions" when i execute the following line of script on QTP 9.0 Dim qtApp, qtRep Set qtApp = CreateObject("QuickTest.Application") Set qtRep = qtApp.Test.Actions("Action1").ObjectRepositories Can anyone tell me where i am wrong.

0 Answers  


Using Regular expression in Date format DD/MM/YYYY (0[1-9]|[12][0-9]|3[01])/(0[1-9]|1[12])/([0-9]{4}) in this regular expression year 0000 also accepted.I need atleast any one single digit must be nonzero value (like 0009,1000,0034)

1 Answers  


Explain the terms test and business component?

0 Answers  


what are the disadvantages in QTP 9.2?

1 Answers  






How Does Run time data (Parameterization) is handled in QTP?

2 Answers   Crea,


explain abt dyanamic changing object with example?

0 Answers   Wipro,


what is risks of testing a project?

5 Answers   AppLabs,


How the QTP recognize, handle n reports that a error has been handled by it(QTP) when we perform a recovery scenario in our application n in what manner it will display it in resulting window? Plz help me out.

1 Answers  


If a script has a local repository and also uses a shared repository, which repository will QTP use first when searching for an object during playback?

3 Answers  


What are the various automation frameworks available in qtp?

0 Answers  


Hi friends, In a particular test how many maximum call to new actions we can call?It reusable or normal actions what ever it is .

1 Answers   AppLabs,


Categories