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

I encountered with very strange problem in qtp while writing the script i written the code window"regexpwndclass:=XLMAIN").window"regexpwndtitle:=Open" ).Exit this code was working fine for about 10-15 times i executed the script but after some time qtp started giving the error with the same code the error is "Object doesnt support this method or function window(...).window(..)" then i modified the code with only window"regexpwndtitle:=Open").Exit in place of window"regexpwndclass:=XLMAIN").window"regexpwndtitle:=Open" ).Exit now again its working fine i cannot understand what thing is creating the problem if same code executed successfully in starting for about 10 times then why it is giving the error now can anyone give the reason .

0 Answers  


hi, i am trying to capture "web element" names in a web page, and i written the code like this,, with Browser("title:=") with .page("") .webelement("htmltag:=...").getroproperty("innertext") end with end with //////////////////////////////////////////////////////////////////////////////////// QTP RETURN ERROR like this: " object's description matches more than one of the objects currently displayed in your application. Add additional properties to the object description in order to uniquely identify the object" ok fine , i need to search another property other than "index" i use all the properties like class,text,innerhtml,innertext,visible=true,x , y,abs x ,abs y...but qtp returns error ..... in this webpage index is difficult to find? how to solve

1 Answers   IBM,


Hello, I am facing problem to check textpoint for mercury application . I have inserted checkpoint to check flight summary for place of departure and arrival with datatable and script look like "Browser("Find a Flight: Mercury").Page("Book a Flight: Mercury").Check CheckPoint("Book a Flight: Mercury_4")" but while I am executing this script at last my check point gets fail and display Text Checkpoint: captured "" between Summary and 4/31/2008FLIGHT , expected "Acapulco" Match case: ON Exact match: OFF Ignore spaces: ON I think value from data table is not fatched so please guide me what I have to do to overcome this problem.. Thanks

0 Answers  


what is a file system object in QTP

7 Answers  


I have one question as HP QTP is concern, Please send your answers..... Can we do testing of any application without using any of the framework which are we used in QTP tool. If yes then how it can be possible in the HP QTP tool. -- Regards

5 Answers   ABC,






what is defination of system testing?

3 Answers   CodeArrow, Infosys, Omax,


What kind of errors can b handled in QTP in real time scenario?

2 Answers   AZTEC,


can test automation improve test effectiveness?

0 Answers  


Can we record using all the modes in a single script? Explanation with example is appreciated

0 Answers  


How can you give wait up to 10 seconds in qtp?

0 Answers  


Can we Test Welcome Screens and Process Images with QTP

0 Answers  


I have written some script in QTP and i added those objects in Object Repository. All written script has been executed successfully. After few days when i tried to execute the same script i got error message "objects not found in Object Repositiry". How can we solve this issue?

3 Answers  


Categories