How to call actions in QTP?

Answer Posted / nandishpatil

You can call a action in QTP by the following:

1. Insert > Call to Existing Action
2. Select the "Test From" (If "Action" is being called from
another Test)
3. Select the "Action" you want to call
4. Then select the Location, where the "Action" needs to be
called in the current script
5. Click "OK"

Or you direct write the script as below in the line where
you want to call the action:

"RunAction <ActionName>, (Iteration)"

Here, "<ActionName>" is the Action you want to call and
the "(Iteration)" is optional where you can define number
of iterations you want to execute.

Eg:
1. RunAction Action2, OneIteration (For single Iteration)
2. RunAction Action3, AllIterations (For All Iterations)
3. RunAction Action4, 1-3 (For iterations from 1 to 3)


Note: To Call an "Action" multiple times or to Call
an "Action" from Other Tests, make sure the "Action" is
marked as a "Reusable Action".

Is This Answer Correct ?    51 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different attribute used with regular expression?

614


breef description of batch testing ?

1789


Explain how to use QTP to check broken links on a page?

677


What are the differences between quicktest professional and winrunner?

613


Is it possible to use two instances of UFT on the same machine? If not why?

708






• What type of testing questions will be asked for 2+ yrs exp people in interview?

1355


How to use descriptive programming?

731


How many types of recording facility are available in quicktest professional (qtp)?

697


what is the difference between modular framework & datadriven framework

1674


What is checking bitmaps?

659


How to call a test from another test?

782


How do you convert manual test cases to automated test cases?

667


How to analyzing test results using quicktest professional?

730


How to Upgrade or support firefox 2.0 version on QTP 9.0? I have installed QTP 9.0 and installed firefox 2.0. But in REcord and Run Settings, it shows firefox 1.5 in Web tab for browser selection.

1894


What is the difference between call to existing action and copy of an action?

683