Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Hi could some one explan what is the use of the function Defination generator, And how to use the function defination generator.. Explan with the example..

1871


Can we Test Welcome Screens and Process Images with QTP

1991


how will load the object during runtime?

2156


Get the count of files of similar types from a folder.

1546


Explain actions in qtp ?

1041


Suggest and Define a solution for an application whose objects are not recognized by UFT?

1135


Can any suggest me what is exposure testing?

1877


What are the views available in qtp?

1077


I have created 3 actions in test action1, action2, action3 but I want run action 1,action 3,action2 how can you change in the actions in keyword view?

1144


Hi, Can anyone please tell me how to connect the QC with QTP using QTP script? Thanks in advance

1978


explain keyword driven framework with banking domain?

2065


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

2111


How many types of parameters are there?

1033


Explain the use of action split in qtp?

1172


what is run-time data?

2232