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
How u call functions in QTP
 Question Submitted By :: Sandeepsharmap2006
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How u call functions in QTP
Answer
# 1
Function to calculate the length of characters in a word -

Function countChar(st)/*Vbscript Function
charLength = Length(st)
End Function

Assume above function countChar is written in VBscript, now 
you are getting the text from the Application and calling 
the Vbscript file and gets the length of the characters in 
the word

Dim textValue
textValue= Browser("Browser Name").Page("Page Name").Frame
("mainFrame_5").WebElement("12").GetROProperty("innertext")

executefile "\*.*\countChar(textValue)" /*calling the 
Vbscript file
textlength = charLength /*getting the text length
 
Is This Answer Correct ?    1 Yes 1 No
Jayalakshmi
 
  Re: How u call functions in QTP
Answer
# 2
syntax for function
fun <fun name>(arg1,arg2)
<statements>
end
for example if u want to call mul(3,6)
call mul(3,6)
function mul(a,b)
mul=a*b
end
 
Is This Answer Correct ?    1 Yes 0 No
Charan
 
 
 
  Re: How u call functions in QTP
Answer
# 3
its as simple as calling vbs functions..
 
Is This Answer Correct ?    0 Yes 2 No
Manu
 
  Re: How u call functions in QTP
Answer
# 4
first diclare veriable in note pade and save in vbs file
after that go to new qtp program 
use the publec ffunction
end function satement  go to test resoruses and add 
librarey file run the frogram
 
Is This Answer Correct ?    0 Yes 0 No
Ravinder
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
Is there any MS Access addin in QTP?  3
What is the Diff between Image check-point and Bit map Check point?  2
What is throw object? AZTEC1
If an application name is changing frequently i.e while recording it has name “Window1” and then while running its “Windows2” in this case how does QTP handle? Covansys4
Can we do Load Testing with QTP?  3
In my application there is a billing thru credit card. how to validate the credit card details(min balance,credit card no,card holder name).if these details are valid then only that booking will be done.how to validate these details thru automation or manual?  1
How can we count the no of rows are available in a data table ? Kanbay7
what is vmodel?advantages and disadvantages of vmodel? AZTEC2
What is .Ini file in QTP?  2
will QTP accepts javascript? AppLabs13
What is a runtime datatable ? Ordain-Solutions2
what properties do use to identify a browser and page while using descriptive programming? TCS3
how many test scripts we will write in qtp? very urgent. please??? Thanks in advance..  1
Can we add the objects of an application dynamically? KEN-Group1
How will you handle the situation when object is not captured during record?  2
does qtp need record and playback in realtime. plz tell exactly wat happens HP3
IS standard check point is very important than the other check points in QTP? If so why?  4
How can I generate customized logs in QTP ? Ordain-Solutions1
can we run the scripts of qtp 8.2 in the qtp7.0?  2
How to check the value for variables during run time. Pls anybody can give the answer.. Thanks in advance... Navis2
 
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