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

Which functionalities of QTP used in banking project? pls any say answer?

1652


give me an example where u used good judgement and logic in solving a problem

3572


How to delete an object from the object repository?

815


How do Parameterization and Data-Driving relate to each other in QTP?

826


What is debugging? How you debug your script?

831


HI Everybody, I am using QTP 9.2, I have a problem and hope everybody help me solve it. Now I need to use mouse wheel event to zoom in or zoom out in web client, but QTP can't catch this event. I look forward helping of everybody. Thank you very much.

1880


How software tester can use constants and variables in scripts?

1941


What is a data driven test in qtp?

796


Plz Explain AUTOMATION REFERENCE MODEL?

1929


How do you open adobe acrobat file in QTP and do some testing on that file ?

850


Hi Sudhananda, plz send me the QTP framework with any diagram and PPTS . I want to switch to automatio, I done QTP from professional person, but he does not give me his knowledge properly. so pls help me Thaks send me on following address mirajkar.akash@gmail.com

2152


explain keyword driven framework with banking domain?

1768


Hi, How Accessibility checkpoint in QTP can be implemented in the test script?

1865


How will we compare the texts in the two word files using QTP writing the script in Descriptive Programming. Thanks

1782


What are the methods of the TextStream object that are used for reading from a text file?

1904