How to call actions in QTP?
Answers were Sorted based on User's Feedback
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 |
when qtp recognizes a web link like (hyper link)wich properties it is going to take to identify the objects unquely? what is Ini file in QTP?
I want to open a Notepad window without recording a test and I do not want to use System utility Run command as well. How do I do this?
Hi guys pls any one send me the Qtp Licensed key of version 10.0 pls
what is the purpose of SetTOProperty Method?
1 Answers Cap Gemini, iGate, Wipro,
Hi, i run scripts in one machine those r passed.when i run the scripts in client side those r failed.Give me such a scenario when ever u faced?
In qtp, how you can get the last character from a string?
hi all can any body explain how to write the script for finding the mandatory fields which are having [red Astrik sign (*)]
Plz give the vb script for the following scenerio I have faced one issues while doing test in QTP. I have described the scenario below. 1. I have to test web application.In that i want to select from the drop down values in the application. 2. Suppose Drop down has 5 value "A,B,C,D,E".I would like to give value from data table of QTP. 3. For every iliteration it should select A,then B and so on
How software tester can use constants and variables in scripts?
How did you achieve reusability via QTP?
diff between wr and qtp in detail.
Hi cud you plz answer my question.. what is the size of Object Repository?