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

whenever U using QTP,Test Director, Why we using separate Bug tracking tool?

1784


i am a begnner so am learning Error handling :tried using Recovery manager didnt work i want to be able to handle errors , e.g. if while running the test the folwoing does not show up then how can i use the If then else and goto next step in the test, as in many scenarios it does not show up Browser("The Shopping Channel -").Page("The Shopping Channel -_8").Image("easy pay").Click

1680


What is the difference between a Function and Action in QTP?

788


how do u plan test automation?

1612


The hybrid framework can be implemented for any application. Is it true?

727






banking domain description for software tester for interview

3625


What is meant by Output Value in UFT?

714


Can anyone help.i need total excelsheet operations,shortcuts in testing environment from starting onwards....

1617


What is the Difference between test object and run time object?

769


wht type of User defined functions or Java Releated functions Do we write in VB scripting

1529


hi guys, pls tell me for testing institution training hub, hitech city is best or not?

1520


How to find the difference between 2 dates in qtp?

763


what r the main attributes of test automation?

1657


can u explain the keyword driven framework with an example clearly how to create all the files and how to attach to main test.

5427


What is the difference between Keyword Driven test and Data Driven test?

1944