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

How can the expected image for a bitmap checkpoint be recaptured in QTP

2 Answers   Ordain Solutions,


hi everyone today is the first time i saw this website,and hi iam siraj,iam very impressed by seeing evryones response towards questions,iam a newcomer and i have got tryining in testing can anyone please send me some projects relaited to testing.i know it is very confidential but still if u send it will a great help. my mail id venku_krs@yahoo.co.in

1 Answers  


assume i have few url link how will i dynamically call then using descriptive programming?

0 Answers   BirlaSoft,


Hi, How to export the Checkpoints and Output values(Test area output values) from Object Repository to Excel

3 Answers   Wipro,


When there is descriptive programming, why do we go for Object repository for desigining scripts.?? why cant we use descriptive programming instead of using the Object repository..??

4 Answers   DST Global Solutions,






I am having major problems with some DB Table Checkpoints I add to my script. I 35 web based applications recorded and each has DB Table Checkpoints insert but only 1 script isn't recognizing the DB Table Checkpoints for some reason. I've checked the DB connections and the info in the Library Functions and still only this one script out of 35 doesn't recognize the DB Table Checkpoints. Can someone please help me figure out why only this one script out of 35 that's hitting the same database is having a problem.

0 Answers  


what is the syntax or command in vbscript to display user message example i want to display "welcome to QTP".

3 Answers  


diff between qtp versions from 8.5

0 Answers   Semantic Space,


What is the use of Accessibility check point?

3 Answers  


How does you test a weblink which is changing dynamically?

0 Answers  


How to record a qtp script ?

0 Answers  


how do u handle an object with out name in our application using QTP 9.2?

0 Answers   CTS,


Categories