How u call functions in QTP Function to calculate the
length of characters in a word -
Answer Posted / sreeprasad
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 |
Post New Answer View All Answers
What is qtpro? What is quick test pro?
How many types of object repository in qtp?
Hi Every body please explain me in steps to use checkpoints and object Repositories in QTP for Flight Reservation application please tell me the steps for this its urgent pls thanx for urs answers
Client is able to provide budget..he want you to choose the automation tool for the web application? which one you will select ? QTP or Selenium ? what are the reasons?
describe some problems that u had with automating testing tool?
distinguish between old version and new version QTP features.
How qtp identifies objects?
wht type of User defined functions or Java Releated functions Do we write in VB scripting
How to carry out bit map check points in QTP
How will you check a web application for broken links using qtp?
When Recovery scenario actually starts while testing the application?
Excel sheet having some datas and some datas present in the application (in table). How will you compare these two datas? Write code to fetch datas from Excel sheet.
How can you give wait up to 10 seconds in qtp?
What is quicktest professional (qtp)?
What is the limitation to XML Checkpoints?