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
whenever U using QTP,Test Director, Why we using separate Bug tracking tool?
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
What is the difference between a Function and Action in QTP?
how do u plan test automation?
The hybrid framework can be implemented for any application. Is it true?
banking domain description for software tester for interview
What is meant by Output Value in UFT?
Can anyone help.i need total excelsheet operations,shortcuts in testing environment from starting onwards....
What is the Difference between test object and run time object?
wht type of User defined functions or Java Releated functions Do we write in VB scripting
hi guys, pls tell me for testing institution training hub, hitech city is best or not?
How to find the difference between 2 dates in qtp?
what r the main attributes of test automation?
can u explain the keyword driven framework with an example clearly how to create all the files and how to attach to main test.
What is the difference between Keyword Driven test and Data Driven test?