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

What is an other way of "Wait" statement in QTP I dont want to use wait("Some number"). Can any one tell this please..........

10 Answers   ADP, AZTEC,


Does any one worked on JIL Emulator , Testing with QTP(automation). Trail Version of QTP is not identifying the child objects of JIL emulator, Can any one help me out ,

0 Answers  


what type of scripts are asked in qtp?

2 Answers  


Can you tell me any books or websites to learn VB Script for QTP ??

1 Answers  


What is the difference between low level recording and virtual object.

2 Answers   Tech Mahindra,






What is Expert view?

4 Answers  


HI. Plz Clarifie my doubt,having 2+yrs experience in Testing , But My accedamics(Xth,INTER) are Less than 60%, But B.Tech 72%. It creats any problem , When i change to any MNC. plz tell me......... lot of friends told it's a problem, Some people says NO problem, What .............

3 Answers  


1. How to capture data from images in QTP and produce them in Excel sheet

1 Answers   Broadridge,


In an application you have a web table. You are provided with an external Excel sheet with the same structure as that of the web table. How will you retrieve all data from the web table and compare it with corresponding data available in the excel sheet, using QTP? How will you report the results in QTP?

1 Answers  


Hi..All I have installed QTP 10.0, and need to Automate SAP Application.....so i need to Install SAP Add-ins, anybady has SAP-Addins, Please help me, and thanks in advanced plese send it on my email id: sandipgami84@gmail.com Thanks, Sandip Gami +91-9714177088

1 Answers  


How to call script1 into script2?

3 Answers  


can the activities of test case design be automated?

0 Answers  


Categories