How to call actions in QTP?

Answers were Sorted based on User's Feedback



How to call actions in QTP?..

Answer / 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

How to call actions in QTP?..

Answer / appuraja

Insert > Call to Existing Action

Is This Answer Correct ?    11 Yes 5 No

Post New Answer

More QTP Interview Questions

Iam doing automation in Oracle App's using QTP? In App's because of some functional setup, keep on changing my script flow. for this how can i use the recovery sceanrio?? Please help me?

1 Answers  


How to analyzing Test Results using QTP?

1 Answers  


What Folder Structure following in Keyword Driven Frame work?

0 Answers  


what is test data

4 Answers   Wipro,


I created 3 actions in test suppose I want to run action 1 in single time, action 2 is 4 time what I do?

0 Answers  


what is keyword driven testing

2 Answers  


What is the difference between "Call to copy of action", "Call to existing action" & "Call to winrunner action"?

5 Answers  


WHAT IS PARAMITARIZATION?

8 Answers  


Hi,All How to change background color of a cell in excel using qtp and that too with out using Excel Object.(I am importing the excel sheet by using ImportSheet method)

1 Answers  


Explain getroproperty and gettoproperty & settoproperty?

1 Answers  


can QTP works on LINUX platfom

2 Answers  


What are the Features & Benefits of Quick Test Pro ?

1 Answers   Crea,


Categories