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 an other way of "Wait" statement in QTP I dont want to use wait("Some number"). Can any one tell this please..........
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 ,
what type of scripts are asked in qtp?
Can you tell me any books or websites to learn VB Script for QTP ??
What is the difference between low level recording and virtual object.
What is Expert view?
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 .............
1. How to capture data from images in QTP and produce them in Excel sheet
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?
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
How to call script1 into script2?
can the activities of test case design be automated?