How u call functions in QTP Function to calculate the
length of characters in a word -
Answers were Sorted based on User's Feedback
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 |
Answer / neeraj chauhan
Dim Str
Str="We love Our India"
Strlength=len("Str")
msgbox Strlength
Is This Answer Correct ? | 1 Yes | 0 No |
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 |
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 |
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 |
In qtp, how you can exit for loop?
If u prepare bug report in Excel sheet . Is it possible to send thrw Test director? how it is?
please give me the code for doing retesting of gmail login page using functions so the function has to give the value
How to get data line by line from web element
Will QTP Support Visual Foxpro Applications? If yes please tell me whether I need to install any additional addins for that?
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"
What is your role and responsibilities in QTP with your current organization?
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.
1. What is extense of Result file in QTP?
Can we do Load Teting with QTP?
what is Function Definition Generator? can any one explain me in details?
What are the differences between QTP 9.2 and 10? please explain e indetail......