str="QTP AUTOMATION TESTING"
here how many T are there in the str
finally i want to display the T
Answers were Sorted based on User's Feedback
Answer / abin
str="QTP AUTOMATION TESTING"
a= ubound(split(str,"T"))
msgbox a
Is This Answer Correct ? | 10 Yes | 1 No |
Answer / karthik
i am thinking this will correct ...because he want to count
how many T are there ,for that it's correct..
and finally he want to display the T ,just read the question
once again ...if i wrong let me know...
str="QTP AUTOMATION TESTING"
dim l,m,n,p
l=len(str)
for i=1 to l
m=mid(str,i,1)
if m="T" then
n=n & m
end if
next
p=len(n)
msgbox P
msgbox n
Is This Answer Correct ? | 9 Yes | 2 No |
Answer / ganesh
excellent answer by gabbar..out put 5 came
but question is not over ..finally display T ?
what about T.........
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / prashaant kumar
str="QTP AUTOMATION TESTING"
a= split(str,"T")
msgbox ubound(a)
msgbox string(ubound(a),"T")
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / pravati
x="qtp automation testingttt"
y=split(x,"t")
for i=0 to ubound(y)
msgbox ubound y(i)
next
Is This Answer Correct ? | 0 Yes | 0 No |
Dim strValue,i, blnFlag,incRement
strValue = "QTP AUTOMATION TESTING"
blnFlag = ""
incRement = 0
For i = 1 to Len(strValue)
If Ucase(mid(strValue,i,1)) = "T" Then
incRement = incRement+1
blnFlag = blnFlag &Ucase(mid(strValue,i,1))
End If
Next
Msgbox incRement 'Number of Ts are Displaying 5
Msgbox blnFlag
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / manjesh
a="QTP AUTOMATION TESTING"
b=split(a,"T")
c=Ubound(b)
msgbox c
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / jay patel
dim str
str = "qtp automation testingttt"
a = split (str,"t")
for each x in a
msgbox x
next
msgbox ubound(a)
Is This Answer Correct ? | 2 Yes | 5 No |
In QTP, while launching qtp application from startup.. we find Advanced Keyword-Driven Testing caption.. wht is that...Anybody can pls explain it. Thanks in Advance
Explain about the test fusion report of quicktest professional?
example-date format is 01-jan-09 in QTP.How to convert this format to 01-01-09?
When it be decided to go for either Per - Action or Shared?
Explain the check points in QTP?
22 Answers Gray Matrix, IBM, Microsoft, Prapan Solutions, Zensar,
how to create flat file datasubmission in qtp
How to export quicktest professional results to an .xls file?
What are the different attribute used with regular expression?
Explain the benefits of quick test pro(qtp)?
for example one window is there, the window contains how many edit box's i want script? i know the script but that is not exact answer.... The script is like this .......... set a=description.creation() a("Native class")="WinEdit" b=window("Flight Reservation").childobject(a).count msgbox b if u found exact answer please getback to me? raju.ippali@gmail.com 9823257761
Diff between Test Stratergy and Test Plan? Diff b/w Test design ansd test case design?
What is quicktest professional window?