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   SiteMap shows list of All Categories in this site.
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 Function to calculate the

length of characters in a word -
 Question Submitted By :: Sreeprasad
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How u call functions in QTP Function to calculate the length of characters in a word -
Answer
# 1
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 ?    0 Yes 0 No
Sreeprasad
 
  Re: How u call functions in QTP Function to calculate the length of characters in a word -
Answer
# 2
Dim Str
Str="We love Our India"

Strlength=len("Str")

msgbox Strlength
 
Is This Answer Correct ?    1 Yes 0 No
Neeraj Chauhan
 
 
 
  Re: How u call functions in QTP Function to calculate the length of characters in a word -
Answer
# 3
hi neeraj chouhan,

Plz check it script before post 
as per ur script it shows "3"
but it not a r8 ans
 
Is This Answer Correct ?    0 Yes 0 No
Nnr
 
  Re: How u call functions in QTP Function to calculate the length of characters in a word -
Answer
# 4
Yes you were right, i did a mistake in passing arguments.
Now it will work correctly.. 

Dim Str
Str="We love Our India"

Strlength=len(Str)

msgbox Strlength
 
Is This Answer Correct ?    5 Yes 0 No
Neeraj Chauhan
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
What is vulnerability? CTS1
what is the framework followed by ur company in qtp  5
There are two tabs in the application suppose, A and B.On clicking the tab "A" one table grid will open. if u click on tab "B" Another table gride will open. Now can I do some operations on both table grids with a single table grid properties in the object repository? I have added all objects of the first table grid into the object repository Now iam checking enable/disable status of "save button" in the second table grid my code is like this val=javawindow("zseries").javabutton("save").getroproperty ("enabled") when I highlighting the save button in the object repository by keeping open the second tablegrid on the application.It is displaying the popup message"The selected object can not be found in the application" can I use properties of one table grid for both tabs if so how it is possible. Can anyone help me Livetek2
Explain the keyword createobject with an example.  1
Why VB scripts are used in QTP and TSL in Winrunner, is there any advantage of using VB Scripts  2
hai,i want to select an option from the right click pop up menu.but the qtp is not recognizing the right click pop up menu as a seperate object.can any one tell me the solution.  3
how can you describe the basic flow of automation with conditional and programmatic logic? Ordain-Solutions1
What kind of errors can b handled in QTP in real time scenario?  1
Hi All I am installing QTP 8.0/8.2 in my office desktop (WIN XP) but it is not working. Inspite Installion is succesfully done but when i open qtp from programs it opens only first screen of add-in and after that it disappears. But in my other computer at home (winxp) it is working fine. Can you please give the reason, why it is not working in office desktop. DEEPAK SINGH Satyam4
Explain key word driven frame work?How to use in real time? HP2
How exactly you start scripting in QTP? In the interview he was not satisfied with my answer.Please post what is correct answer.  5
I need to know how to Automate a Username and Password for a Web-based product? I'm scripting 3 different types of surveys but each Survey requires a Username and Password which is always the same. I can I do this using QTP?  3
Give me brief idea about QTP automation object model? TCS4
What is the difference between Action and Function.? when both has the same functionaltiy, when do we choose Action and when do we choose Function..?? DST-Global-Solutions2
What is XML checkpoint in QTP. How we can use in Web Based application LinkEdge2
.mtr ( modular test repository or mercury test repository) plz give correct answer??  3
For example one window is there the window contain some of Check boxes but my question is how many check boxes are there particular window? Please solve the problem gi_raju@rediffmail.com ippaliraju@yahoo.co.in  3
what is key word driven frame work how to use keyword driven frame in QTP in a project AppLabs1
in QTP, we have options like (record and play,recording modes(normal,analog,low level),object identification,smart identification,object repository,synchronizing test,transactions,checkpoints(std,bitmap,text,text area,DB,XML,accessibility),regular expression,actions,data driving,parameter,parameterization,data tables,recovery scenario(pop up,object state,test run error,application crash). real time users of QTP, pls say and when and at what point u have used all these options ,in ur concerned project.pls give me explanation in accordance with ur real time project handled. real users pls send some time in the aboue case. if u can send the the reply through allinterview or at ref_it_ref@yahoo.co.in  1
How to create a Runtime property for an object in QTP?  4
 
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