I am trying to insert a call to a re-usable action in adifferent script. I would like to avoid the wizard to do so.
Eventhough I tried Call RunAction Action1[ScriptName], it is not working. Can anyone help?
You can try to call the Reusable Action by the following method...
In Main Menu>> Insert > Call To Action >
Here either you can specify the full path
or you can specify the folder path in Main Menu >> Tools > Options > Folders tab and then type the folder name (eg CommonScript) in the dialog box which you get when CALL TO ACTION option is selected.
Remember One thing. The call to action will only make a reference to the original script. Hence if the original script location or the script name changes, it affects the call also.
Sorry that I did not present the question well. Actually what I was loooking for is a piece of script which will insert a call to an action. Means avoid menu>insert>call to action and write a QTP method/script/VBScript which does the same. Is it possible.
Originally posted by NiranjanNBR: Actually what I was loooking for is a piece of script which will insert a call to an action. Means avoid menu>insert>call to action and write a QTP method/script/VBScript which does the same. Is it possible.
<font size="2" face="Verdana, Arial, Helvetica">Just wondering if you find out the answer. looks like I also having the same problem.
Seems like you've gotta use the freaking wizard. Btw, thanks DLG99 - I had no idea about the test.tsp file creating an alias. All this while I was under the impression that the Call RunAction() statement works fine.
Have u tried using a procedure or a function to implement what you are trying?
(I'm hiring Software Development Engineers in Test in Seattle, WA)