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

what is the Vbscript to connect Database

5 Answers   IBM,


How can we translate the steps between the Keyword and Expert Views?

1 Answers  


1.In VB Script 100 lines Script. How can check the Syntax errors? 2. Write a VB Script for X = India/Srilanka/Australia/England/South Africa.I need the Output Country wise? [ 1st Msgbox India , 2nd Msgbox Srilanka] ---- 3. How can Choose these test cases to be automated?

5 Answers   HP,


I AM TRYING PORT CODE FROM WINRUNNER TO QTP AND DON'T KNOW TO HOW TO CHECK THE ERRORS. IN WINRUNNER FUNCTION RETURNS EIGHER 0 OR -1 AGAINST WHICH RESULT CAN BE MADE PASS OR FAIL BUT IN QTP I DON'T SEE FUNCTIONS RETURNING ANY VALUE. APPRECIATE IF ANYONE COULD HELP ME CONVERTING FOLLWOING WINRUNNER CODE TO QTP. set_window("Customer Service"); rc = web_obj_get_text("Summary","#2","#4",ssn,""," ",1); if (rc != E_OK) { report_msg("[GetSubscriberSummary] Could Not get subscriber SSN; rc = "&rc); myRC = rc; } else { ssn = StripBlank(ssn); if (DEBUG) report_msg ("[GetSubscriberSummary] SSN: "&ssn); }

0 Answers  


3 differences between QTP & Winrunner?

1 Answers  






In web page there is five OK buttons available, while recording i click on 3rd OK button, How QTP identify the 3rd OK button while running script? Is qtp identify 3rd ok button?

14 Answers   Polaris,


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

1 Answers  


how to get column count in datatable

3 Answers  


what is keyword driven framework in qtp.

13 Answers   Cognizant, TCS,


A web Page has a webtable with four columns and four rows. The first column is of ID and has values of 100,100A,A100,100y Find out the number of rows whose ID starts with 100. Similarly the last column is 'number of links'. Each row in the last column has values like link1,link2,link3 etc Find out the number of links where id is 100

1 Answers   Virtusa,


How to differentiate the webedit field like user name and password? Please tell any other best answer is ther

3 Answers   Navis,


what is stepin & stepout?

0 Answers  


Categories