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 test scheduling?
what is On Error Resume Next ?
how u track bugs using Test director in manual testing.
When I start recording any web application (either Mozilla or IE) QTP recognizes window instead of browser and also it does not show all the hierarchy tree of that particular web page. 1. Window("Mozilla Firefox").Check CheckPoint("Mozilla Firefox") 2. As everybody knows it should be browser("Mozilla Firefox").Check CheckPoint("Mozilla Firefox") I am using the windows vista, do you think it may be a problem of my settings in QTP or problem of my installation. Your kind responses will be appreciated. Thanks in advance. Satya
Does QTP work in UNIX environment
5 Answers BirlaSoft, C1 India,
what type of test cases tou will automate?
Hi All, I have a problem with getting the value which is available in the table and it is not having any unique property. Please find the below table TopicName CreatedBy ViewCount ------------------------------------------------ XXXX Y 10 ZZZZ ZZ 0 AAAA BBB 3 In the Above table TopicNames are link and it is having an id but the remainig two columns(Created by and ViewCount) are static Web element values and they are not having any unique property. Now i want to get the values of Created BY and View count for each and every topic. Can anybody give me the solution for the above ASAP. If anybody didn't understand the above please free to send me a mail by that i can send you the snap shots and some more description. You can catch me at krishnachand.p@gmail.com
dar Sir I am Facing th eProblem in QTP thet ,when I start thrcording inthe QTP for the ASP front end and C# the Coding Language I fing that recording is Done well for the Login screen but at the Time Running the script the QTP is Unable to Identify the Objects On the Objec Onht eLigin screen .Please answer the Question in Description and the Propables reason I might be facing alsp the Popable solution I have to Take thanks and ragards
I am trying to write a descriptive program for clicking on a perticular link.For that i wanted an index or location of that object.But when I viewing through spy, There was no index property of that object.What to do for getting index value.How can I get index? please any one let me know.
Action1: I have a value "test" stored in a variable X. I want to use that variable X in Action2 .. how?
I used child objects to get the no of weblist present in the weblist.now i need to select the items present in each weblist ?How to do so
whenever U using QTP,Test Director, Why we using separate Bug tracking tool?