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

Is it possible to change the extension of Shared object repository?

2 Answers  


how many script you will wright in a year ? i told it's depends on the proj..and 'n.no of ... but he forced me to tell some num. or avg .....how many i suppose to tell..??and do a favor per day how many script don't thing it's repeated question or common ...help me post a ans...thanks for advance

1 Answers   HCL,


Explain the difference between check point and output value?

0 Answers  


Did you find anything in your project that QTP proved inefficient to perform?

1 Answers  


Can UFT be connected to Quality Center? If ‘Yes’ brief the process or steps.

0 Answers  






Explain the difference between smart identification and object identification withn clear example. please it is very urgent

2 Answers   Wipro,


Can anybody give the script to addsheet, add column,add values under that column in the rows??

5 Answers   AZTEC,


What is throw object?

1 Answers   AZTEC,


What is quick test pro?

0 Answers  


In project module it contains 3-ok buttons with same properties who qtp identify its objects while runing ??

5 Answers   HCL,


Hi, can explain the draw back of manual testing.plz send me the answer to my mail id deepthip1985@gmail.com

0 Answers  


What is object spy in quicktest professional?

0 Answers  


Categories