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

In qtp, how you can exit for loop?

0 Answers  


If u prepare bug report in Excel sheet . Is it possible to send thrw Test director? how it is?

3 Answers   Wipro,


please give me the code for doing retesting of gmail login page using functions so the function has to give the value

0 Answers  


How to get data line by line from web element

2 Answers  


Will QTP Support Visual Foxpro Applications? If yes please tell me whether I need to install any additional addins for that?

0 Answers  


Can anyone tell me what is the equivalant method to be used in QTP for "web_obj_get_text" used in winrunner. My winrunner code is below. set_window("Confirm Add Subscriber"); rc = web_obj_get_text("Add subscriber:","#8","#1",orderID,"The order number is","\.",1); basically I need to retrieved the "orderID " from a string present in 8th row & 1st col of table "Add subscriber"

1 Answers  


What is your role and responsibilities in QTP with your current organization?

1 Answers   Oracle,


How to perform action on objects, If two objects have the almost the same name ? example : Object 1 : "Entry of Items" Object 2 : "Items" Whenever I ask QTP to perform an action on Object 2 it performs action on Object 1. Note: The two objects are present in an Oracle Application tree.

2 Answers   Wipro,


1. What is extense of Result file in QTP?

7 Answers  


Can we do Load Teting with QTP?

12 Answers  


what is Function Definition Generator? can any one explain me in details?

6 Answers   Accenture,


What are the differences between QTP 9.2 and 10? please explain e indetail......

2 Answers   Wipro,


Categories