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
What are the disadvantages of recording test cases in qtp?
PLEASE TELL ME WHEN DO YOU USE THE OBJECT SPY AT RUN TIME
Is there anyway to automatically update the Datasource name in Database Checkpoints object when we migrate tests to a new release?
Brief the process of testing with UFT?
How to check feasibility of the appliction?in automation testing?
How extensive or customized are the server logging and reporting requirements; are they considered an integral part of the system and do they require testing?
explain how to write vb script in qtp?when will you write own script?
How to handle the exceptions using the recovery scenario manager in qtp?
what is the structure for the data driven framework
Shall we add Local Repository to shared object repository,if yes,how we add
How to automate a script in mainframes environment? I have the terminal emulator Add in. Describe in detail.
what is supply chain management?
when a test case is written how u test using qtp
I am a newbie to QTP / Automation testing. I want to develop a script that creates a data file automatically with proper headings using VBScript in QTP.
how will you check how many members visited the website www.infosys.com?