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
 
How to export QTP results to an ".xls" file?  1
tell me the script for envirnment value parameeter with an example. which situation envirnment valu parameter is used HCL1
is we can import the object repository from external source. if it so then how?  5
what is the automation framework that ur company using(actual procedure,not theoritically explination)  1
After running scripts how you report results ,there is any specific report form Novartis4
Please give me the steps to carry out datadriven in QTP8.2  2
hi i have one issue while coding the dates . i want to add the date curret to 4 days . can any one helme plz about this regards balaji  2
We developed 100 descriptive programms and put in running, in the midle if any descriptive program is stucked with some error? what will happend weather it will execute the remaining prg's or it will terriminate ? Kanbay5
how can i call reusable action in a function could any one explain me? Livetek2
i am entering wrong data or wrong password in a text box and click on submit button .i am getting a popup window with a message Please enter the correct password or data .How can i handle this situation by using QTP. SAP-Labs8
what is main diff of qtp8.2 and qtp9.0? Covansys1
how can i change the action path that called in other action. when i copy one action to other pc,the action"test2" calls another action(C:\test1\action0),and i update this"test1",the folder update to "action1",but when i open "test2", it just point the call path to "C:\test1 \action0", but does not update to "action1",and the change i make can be shown in test2. so, can i update the call path manully? thanks HP2
How to covert a String to an integer?  3
When we parameterise some field ex. Textbox is there any way that we can generate a specefic number of random values (For alphabetical values if possible) instead of manually entering values in the data table  2
what testing activities u may want to automate in a project?  1
What is smart identification? Ordain-Solutions1
How to Test the mainframe application?(tell me few basic things) Covansys1
How to handle the exceptions using recovery scenario manager In QTP?  2
How can I replace all the text from the QTP script with some other text. Livetek1
How to set the function parameters as optional. 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