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

how to create the varibles and how these are connect to qtp? plz tell me

3 Answers  


How we can add actions in the test using QTP?

5 Answers  


what is the difference between xmlutil and xmlDOM in qtp?

2 Answers  


Explain me in deatail about DATADRIVEN framework including scripts ?(realtimes plz)(Chandana)

4 Answers   Wipro,


How to export data present in Datatable to an ".xls" file?

3 Answers  






Hi frens! I am testing VB project with MS Access database. At add button click my record is storing in data table and it is shown in datagrid. So at Delete button click i want to check datagrid rows 9before and after delete). so how can i do it using descriptive programming?

0 Answers  


How to capture all the data of a webtable, weblist and combolist using QTP?

0 Answers   ITC Infotech,


Inserting a Call to Action is not Importing all columns in Datatable of globalsheet. Why?

4 Answers   Accenture,


What r the diffrernt file extentions in QTP?

3 Answers  


Batch testing in howmany ways u perfrom in QTP

3 Answers   Lehman Brothers,


In Descriptive programing if i use this below code will it work for login window or flight Res Window. Shud i add the properties like attached text=login and text=Agent Name in the object repository and define a new object first. Pls tell me the procedure in clear inorder to execute this script. Dialog("title:=Login").WinEdit("attached text:=Agent Name:").set"agent123" Dialog("title:=Login").WinEdit("attached text:=Password:").set"mercury" Dialog("attached text:=Login").winbutton("text:=OK").click

2 Answers  


Can we select add ins in UFT during run time

1 Answers   NIIT,


Categories