How u call functions in QTP Function to calculate the

length of characters in a word -

Answers were Sorted based on User's Feedback



How u call functions in QTP Function to calculate the length of characters in a word -..

Answer / neeraj chauhan

Yes you were right, i did a mistake in passing arguments.
Now it will work correctly..

Dim Str
Str="We love Our India"

Strlength=len(Str)

msgbox Strlength

Is This Answer Correct ?    9 Yes 0 No

How u call functions in QTP Function to calculate the length of characters in a word -..

Answer / neeraj chauhan

Dim Str
Str="We love Our India"

Strlength=len("Str")

msgbox Strlength

Is This Answer Correct ?    1 Yes 0 No

How u call functions in QTP Function to calculate the length of characters in a word -..

Answer / billa

NNR,

Do not go so rude with Neeraj,after all Neeraj is only
helping us and if you know the right answer then before
pointing finger, post your answer also.

Billa

Is This Answer Correct ?    1 Yes 0 No

How u call functions in QTP Function to calculate the length of characters in a word -..

Answer / 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

How u call functions in QTP Function to calculate the length of characters in a word -..

Answer / nnr

hi neeraj chouhan,

Plz check it script before post
as per ur script it shows "3"
but it not a r8 ans

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

Explain object spy in qtp.

0 Answers  


in process of project exaplnation the defects are says frequently r not?

1 Answers  


Will down time for server and content maintenance/upgrades be allowed? how much?

0 Answers  


How to open a new test using QTP?

1 Answers  


What is CMMP and CMMH?

0 Answers  






What is User defined function in QTP

6 Answers   Bank Of America,


How to add a standard checkpoint in your test ?

1 Answers  


how to reverse a string with out using string or predefined function,ex:string is " i love india". the output should be like this "i evol aidni"

10 Answers   Aspire, MNC, Omega,


HI ALL I AM WORKING AS A AUTOMATION ENGINEER FROM PAST 2 MONTHS IN QTP,MY QUESTION IS IF I OPEN THE BROWSER FIRST & THEN THE QTP LATER MY OBJECT SPY WILL NOT WORK,Y IT IS SO..IF U HAVE THE ANSWER PLZ MAIL ME AT AKSHAR.MYSORE@GMAIL.COM

8 Answers   Infosys, TCS,


Hi Friendss..., can any body help me.. 1. Tell me your achievements(Technically)..? 2. Tell me your strengths(Technically) and weakness(Technical)..? 3. Why are you looking for change..?

0 Answers   Ness Technologies,


Hi cud you plz answer my question.. what is the size of Object Repository?

8 Answers   TCS,


What is the use of text output value in quicktest professional (qtp)?

0 Answers  


Categories