Syntax for how to call one script from another? and Syntax
to call one "Action" in another?

Answers were Sorted based on User's Feedback



Syntax for how to call one script from another? and Syntax to call one "Action" in anoth..

Answer / aaa

suppose If you created a Script1 for Reusable functions
and say you have another Script2, Script3, etc....
First Open A new Script and click on Insert > call to
existing action (browse for your script1)and click
OK.Then, again click on Insert >Call to Copy of action
>and browse for your script2 and click OK........this way
you can call one script from another......It's a Batch mode.

Is This Answer Correct ?    1 Yes 1 No

Syntax for how to call one script from another? and Syntax to call one "Action" in anoth..

Answer / brahma reddy

If u want to call the script from one action to another then
the below syntax used
suppose u have created a test1 ,in that you have created
the all steps for action1.and you have created a
action2 .now you want to call your script from action

runaction "action1(test1)iteration1"


Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More QTP Interview Questions

How i can change shared repository to per test repository in qtp

1 Answers  


What is throw object?

0 Answers  


What does VBS file contain...??? what is VBS file.. ???

6 Answers   GE,


Hi any body can tell me the in detaled information about Description.Create() thanks in advance

2 Answers  


How to test login module with different username and password by using data driven testing in QTP?

0 Answers   HCL,






If the weblist is identified as webelement,and by clicking on webelement if the values are displayed,and if the values the values also identified as webelement.then how to fetch the values through script?

0 Answers  


How to retrive data from a data table which is in 3rd row,4th column and place it in main script..like retrive name,date from data table..write script for this.

11 Answers   Thatavarti Technologies,


does QTP provides any tools for parametrisation?

4 Answers  


How to make arguments optional in a function?

2 Answers   Crea,


What environment does qtp run in?

0 Answers  


How we can add actions in the test using QTP?

2 Answers  


What are metrics and matrix?

0 Answers  


Categories