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
Is it possible to switch between recording modes during a test creation?
How to handle the exceptions using recovery secnario manager in quicktest professional?
Can any one explain me what is the procedure to connect the remote desk by using QTP 9.2 ?
How to do call a output parameter from one action to another action??/
Hi Friends, How many types of Data Bases available in market... What is the diff. while using Syabase and Oracle in a Project... ? and what is the main diff. of Syabase and Oracle databases... ? Thanx in advance..
Have you used xml check point in your project?
What is RTM (require ment tracebulity marix) fromate?
What is checkpoints for qtp?
I want to grow as a Automation Engineer,Kindly help me in clearing my interview that what interviewer looks for as a Automation Engineer. I am having three years of experience in testing.
How to use the object spy in quicktest professional (qtp) 8.0 version?
How to carry out bit map check points in QTP
Limitations in QTP?
Can anybody let me know how to test the Drag and drop feature of the column in a .net application...eg..i hav to test the drag and drog feature of a table(swftable) in a application..plze help!!
What are the different types of recording modes?
Hi, how can we check or avoid the memory leakage in QTP9.2?