what is diffrense between action and function

Answers were Sorted based on User's Feedback



what is diffrense between action and function..

Answer / kiran

1. Action is associated to object repository where as
function is not assocoiated to any repository and contains
only vb statements

2. Action can return multupla values where as function can
return single value

Is This Answer Correct ?    6 Yes 5 No

what is diffrense between action and function..

Answer / chandu

Actions are used to divide scripts into logically related
groups of QTP Statements . They are similar to functions but
with a few differences

Action are unique to QTP , While functions are supported by
both VB script and QTP.

Is This Answer Correct ?    0 Yes 0 No

what is diffrense between action and function..

Answer / mahaboob

Action is a qtp tool feature,we can use checkpoints in actions,As it is a qtp tool feature it may corrupt and Actions are slow execution.
Function is a vbscript feature,we canot use checkpoints in functios insted of functions we can use Loops and conditional statements,functions are fast execution compate with actions.

Is This Answer Correct ?    0 Yes 0 No

what is diffrense between action and function..

Answer / giridhar

1 Action is the Local source.its may hav small script
in action we can use only recorded identifiers.

2 Function is the Outer source.its may hav more script

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More QTP Interview Questions

Can anyone share/send me QTP 8.2 Crack as I had it before but now it's virus affected. Pls send me on Sawale.vijay@gmail.com Thanks, ~Vijay

0 Answers   Zensar,


what is the general issues faced while using automation tool Qtp9.0

1 Answers   TCS,


where the object repository is located?how to choose the object repository as shared or action object repositories?

4 Answers   Datamatics,


In key word driven framework,we will rename the logical names of objects,why?

3 Answers   Liquid Hub,


Hi I'm a beginner in QTP. So far I'm ok with Descriptive but stuck while implementing Hybrid Frame work. 1. I have created a Keyword file with .vbs ext set home=description.create home("title").value="Welcome to feests" set reglink=description.create reglink("name").value="register yourrestaurant / take away" set fbusname=description.create fbusname("name").value="business_name" set dispname=description.create dispname("name").value="display_name" set restchkbox=description.create restchkbox("name").value="restaurant" set cuiscate=description.create cuiscate("name").value="cuisine_categery1" set addline1=description.create addline1("name").value="address_line1" set pstcode=description.create pstcode("name").value="address_postcode" set cntry=description.create cntry("name").value="address_country" set mlandno=description.create mlandno("name").value="landline_no" set emailadd=description.create emailadd("name").value="email" 2. I have created an Function Library file as follows Function launch() bro="C:\Program Files\Internet Explorer\iexplore.exe" url="http://www.feests.com/" invokeapplication bro&" "&url Browser(home).page(home).Link(reglink).click End Function Function restregistration(karthik, teja, Ameerpet, UK) Browser(home).page(home).WebEdit(fbusname).set "karthik" Browser(home).page(home).WebEdit(dispname).set "teja" Browser(home).page(home).WebCheckBox(restchkbox).set "ON" Browser(home).page(home).WebList(cuiscate).Select "Indian" Browser(home).page(home).WebEdit(addline1).set "Ameerpet" Browser(home).page(home).WebEdit(pstcode).set "UK" Browser(home).page(home).WebList(cntry).select "United Kingdom" Browser(home).page(home).WebEdit(mlandno).set "023775347" Browser(home).page(home).WebEdit(emailadd).set "email@gmail.com" End Function 3. This is how I have called the keywords and Functions in QTP executefile"C:\Documents and Settings\karthik\Desktop\keywords.vbs" executefile"C:\Documents and Settings\karthik\Desktop\functions.vbs" launch restregistration karthik, teja, Ameerpet, UK, "email@gmail.com" Now the issue is, I'm trying to enter the email ID in WebEdit field. But I dont know what is the mistake I did, if I run the script in QTP it is showing following error Error: Expected identifier Line (2): "executefile"C:\Documents and Settings\karthik\Desktop\functions.vbs"". Can someone help me fix this, please!!?

0 Answers  






What is the use of Debug Viewer?

0 Answers  


I need Major Help with a Script I recorded in QTP 9.5. I am recording scripts for a Web-based application(s) I have all the URLs for each application in Excel spreadhsheet so that QTP can pull that particular application from the spreadsheet and run it. The problem is QTP isn't recognizing one particular URL so when I hit run in QTP to run this script it opens the internet Explorer but isn't open the URL I have in the Excel spreadsheet. I've retyped the URL and still QTP won't open this Particular one for some reason. The site its self is working fine but for whatever reason QTP won't open it. How do I resolve this? I have a deadline of next Friday the 7th to complete this task so please help me in any way you can. Thanks in advance

0 Answers  


How do you create regression test packs?

0 Answers  


What is the use of virtual objects?

1 Answers  


Which property will you use to check the object state? (Exist)

2 Answers   Symphony,


There is one parent browser and 'n' number of child browsers on desktop. Write a code to close all the child browsers but parent browser should not be closed.

1 Answers  


There is an built in window application in qtp9.1,i.e.Flight4.0.i want to implement the recovery maneger on it.How can i do this?

0 Answers  


Categories