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 |
What is the difference between systemUtil and invoke method..?
what are the limitations of smart identification in qtp 9.0
how to know no.of mails in our g mail by using vb-script
if there is two login button in your page, how you know that this login button is correct for login .
I have many listboxes in my application. I have to check whether the contents inside the listboxes are in sorted order or not..can anyone please send the code as early as possible
how to capture the run time values of web table.
what is tool interface?
How to handle exception when data table is not available in local host system or path is not correct(explain statement with example)
How many types of Test Plans are there...??
In QTP can we feed the out of one browser(internet explorer) as an input to the another browser(mozilla firefox)? If yes explain how to do it with an example.
What is checkpoints for quicktest professional (qtp)?
What is the limitation to XML Checkpoints?