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 anot..

Answer / suresh babu m

Hi,

Sorry to say from above answer is wrong.

If u want to call the actions, before it should be reusable.

Syntax : Runaction "ACTIONNAME[TEST NAME]",Oneiteration.

Is This Answer Correct ?    6 Yes 1 No

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

Answer / chintu

Steps to insert a call to an action:
• Choose Insert > Call to Action, right-click the action and select Insert Call to Action, or right-click any step and select Action > Insert Call. The Insert Call to Action dialog box opens.
• In the Select an action box, select the action you want to insert from the list.
• Specify where to insert the action : At the end of the test or After the current step.
• Click OK. The action is inserted into the test as a call to the original action

Is This Answer Correct ?    2 Yes 0 No

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

Answer / sreeprasad

If u want to call the script from one action to another

thenthe 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 ?    1 Yes 2 No

Post New Answer

More QTP Interview Questions

How to Install QTP on Citrix Environment? Possible send me the installation steps.. That would be great help

1 Answers  


what is the frame work your using in automation ?

4 Answers  


I have below user Defained function function AddTwo(ByVal a, ByVal b) Dim Ans Ans=a+b MsgBox Ans End function Now my question comes here...from given below methods which method is right to call above function?Which is Wrong and why? 1. AddTwo(2,4) 2. Call AddTwo(2,4) 3. AddTwo 2,4 4. Call AddTwo 2,4

1 Answers  


How u perform exception handling in QTp,what is other name for ths?

2 Answers  


How to get line numbers in your editor in expert view?

1 Answers  






Whenever i'm running 3 diffrent scripts in a Test Batch Runner as a batch. its not showing any result. QTP only runs all the scripts n nothing else. B4 running the test batch i have done all the settings, But still its not working.

2 Answers  


WHAT IS THE DESCRIPTIVE programming when it is useful? & when to use this ?

6 Answers   CTS,


What are the views available in quicktest professional (qtp)?

0 Answers  


If aclient comes to tester ask to bye a tool Keep aside about the cost,In what way we can choose the tool.

1 Answers  


How to creating an output value using quicktest professional?

0 Answers  


what kind of erros can be handled with the using QTP?

2 Answers   CTS, Satyam,


Which object model is not supported by QTP? a)COM b)DECOM c)DOM d)DCOM. Pls explain about theese object models?

1 Answers  


Categories