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 QTP and the use of QTP in TD?
distinguish between old version and new version QTP features.
Why script error occur in between recording in qtp?
How extensive or customized are the server logging and reporting requirements; are they considered an integral part of the system and do they require testing?
I want two test two agents login for the flight website. Here is the scenario: I want to go through 1-3 rows for one user login and other user login I want to go though 3-5 rows. How would you set this up in qtp. Thank You
if anyone has idea of the interview procedure in covansys, plz send me a mail?
What are the different properties of an web object
Hi All, we are using QTP Automation Scripts to test SAP. I recorded QTP Automation Scripts in English-based SAP GUI. Now we have to test a French-based SAP sytem and use the same scripts. The QTP scripts are failing when executed on the French-based SAP System due to Object Recognition Issues. What can we do? Do I re-record the scripts in the French-based SAP system?
What is difference between Recording time object identification and Run time (Execution) time.
Plz Explain AUTOMATION REFERENCE MODEL?
What is use of object spy?
What is the difference between shared and local object repository?
How to test fly out menu in qtp?
What are the data types in qtp?
I have many listboxes in my application. I have to check whether the contents inside the listboxes are in sorted order or not..can anyone please send the code as early as possible