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
Hi ,Can any one pleas explain how to test splash objects using QTP?
Explain QTP using different development techniques ?
How to open a new test using quicktest professional?
How to customize checkpoints with parameters?
I am getting an error "failed to open the XML checkpoint result viewer" in result window,after clicking on "View XML checkpoint results".Someone suggest me settings,if any...
Hi, my requirement is to make a query in SQL using QTP. And i have to get the results of that query and i have to use those results for future testing. I created a driver but i dont know the code for using this Driver. please help me by providing the solution for y requorement
what is the mail use of frame work(with detail). architecture for keyword driven frame work
What is the use of defining a newobject in the object repository "Define New TestOject". How to use this further. If we define new testobject, how can it recognizes the objects properties of any application.
What is text check point and text area check point?
Define Environment Variable in UFT and its uses?
Hi, Can anyone please tell me how to connect the QC with QTP using QTP script? Thanks in advance
what is stepin & stepout?
How to suppress warnings from the test results page?
How the exception handling can be done using quicktest professional (qtp)?
Does QTP record on Objects created on XWindows Environment?