ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
What is the difference between functions and actions in

QTP?
 Question Submitted By :: Sreeprasad
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is the difference between functions and actions in QTP?
Answer
# 1
Reusable Action is peice of code that perform an action on

the application , which has application logic.

On the other hand , Functions does not have the application

logic . It performs a specific action on the data retrieved

from the application and returns the result to the calling

action.

For Ex: Your application has TextBox and Button,

Input : In the textbox we need to enter a numeric value

say 5.

Action : Calculate the Factorial

Expected : Factorial value should be displayed in the

textbox.

Here setting a value to textbox , performing the click

operation and corresponding verification is maintained in

the Action , calculation of the factorial value to arrive

at the expected output we use a Function.
 
Is This Answer Correct ?    0 Yes 1 No
Sreeprasad
 
  Re: What is the difference between functions and actions in QTP?
Answer
# 2
Both Actions and Functions are used to access a peace of 
code, that is frequetly used.

The main difference is :
Functions have only application logic, means that we dont 
have access to the resources of a test.
For ex: we need to write a script to access Object 
Repository, Data Table etc....

Actions also have application logic and the resources 
associated with that action.

For Ex:
Say if you want to call a function, here you need to pass 
function name and all other resources like(OR, Data Table 
etc...).
Where as if you call an action, all these resources come 
with action(based on the type of the action).
 
Is This Answer Correct ?    1 Yes 1 No
Uday Kumar_anem
 
 
 
  Re: What is the difference between functions and actions in QTP?
Answer
# 3
1. Actions can take any no of inputs and it gives any no of 
output also, but functions can take any no of inputs but it 
will gives only one out put
2.
 
Is This Answer Correct ?    0 Yes 0 No
Bhanu Prakash
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
How to do excception handling ( error handling ) in QTP Institute-for-Medical-Education5
How should i get name of the screen? Ex:There is a "submit" button.If i clicked on the submit button it opens a screen. I want that screen name.How can i get that screen name I dont have any property regarding that screen. If suppose we cliked on the screen , Then QTP captures the screen properties then i can get the screen name by using GETROPROPERTY But i want the screen name without clicking the screen. ("I am using the "settoproperty" for Second screen by using fist screen properties") Please tell me anyone Livetek2
Hi. GetRoProperty and OUTPUT Value Both are same purpose or not? plz explain in deatil with example?  3
is we can import the object repository from external source. if it so then how?  5
What is difference between WR and QTP?  2
Synchronizing test Wipro2
suppose i have one datatable in my datatable in 2 nd row 3rd column one link is ther i need to validate that link how do u do this?(wipro) Wipro2
In automation testing Can we retest virtual object in the application after getting new version from the developers, is there any property will change for that object or it won't.? Siemens1
how do u retrieve data from a database ? i.e. i want to retrieve 2nd record only from a database ? write code for this. by using ADODB connecton, RSOBJ and using a FOR loop we can retrieve all the records( ex: if we give query as select * from emp). but i want only 2nd record. so how to acheive this. Accenture2
how can i count the number of links???  2
How can i count "spaces" in any sentence or a string if suppose " It is a Testing question" Here we have 4 gaps(spaces) Is there any function to find out spaces between words Livetek3
How can we encrypt the username using recording mode in login window? There is 2 encrypted types what are it TCS1
What is meant by Pseudo Code? Satyam5
you written some code in qtp for opening google.com browser and entered some text inthe search text box and clicked search button. this is ur script.. before running this script i have already opened two google.com browsers. now am running the script what will happen? script will run or what?? Thanks... Nani Oracle4
How to send the qtp results file by email (Lotus notes). TCS1
What r the advantages of automation?  3
how we will use output values in qtp? is there any possibulity by descriptive programming?  2
How to Synchronize the Browser at Field level? For example if you put Browser.sync(), its waiting upto for that Browser sync only. It should wait total Browser get upload with fields. IBM3
How many actions we can write in a test? TCS5
What is Data driven Testing Frame work.Anybody can expain it in Detail.. Pls anybody can give the answer.. Thanks in advance... Navis1
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com