How u call functions in QTP

Answer Posted / jayalakshmi

Function to calculate the length of characters in a word -

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 ?    14 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How you can decide which type of object repository you have to use?

707


How to connect the remote desktop using QTP 9.2 explain the method or procedure?

2803


What is ObjectParamater?

1575


Give me some real time point of way where exactly we can conduct audits?

1503


what is key word driven frame work ? why it is called like that ? what is the diference between keyword driven and data driven frame work ?

1557






In the website, the protocol has been changed http: to https what you will do? Tell me your approach?

563


Explain the features of quick test pro(qtp)?

581


how to acess a test in RSA?

1673


can any one say that where we can download the QTP trail version ??????????

1367


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!!

1756


What is Test Fusion Report in QTP?

622


What is a quick test professional?

638


What are the types of object repositories? Which one is you are using?

634


can anyone tell me what to say in interview when interviewer asks about "tell me about your framework in your project"?

1407


in a web page How to check and display a particular word from a paragraph?

2044