how to calculate no. of repeating characters in a a
string..please give me the code
Answer Posted / kajal
Function RepeatCharCountInString
RepStr = "Automation Using Test Complete"
Msgbox(RepStr)
RepStr = Replace(RepStr," ","")
RepStr = LCase(RepStr)
RepStr1 = RepStr
For i=1 to Len(RepStr)
RepStrChar = mid(RepStr1,i,1)
Count=0
For j=1 to Len(RepStr1)
Char = mid(RepStr1,j,1)
If(Char=RepStrChar) Then
Count = Count +1
End If
Next
If (Count = 0) Then
Exit For
End If
Msgbox(RepStrChar &" Count is " & Count)
RepStr1 = Replace(RepStr1,RepStrChar,"")
RepStr1 = RepStrChar+ RepStr1
Next
End Function
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what r the verstions from 1st to present (verstions) of mercury tools (like winrunner,QTP,Loadrunner) ? Chandana
your coming from electrical backgroung..but y ur coming to software side?
regular expression in qtp standar check point for months from accepting months from january to december only
how do we know whether all objects are stored in the object repository or not? how can we know if a particular object is not stored in the repository?
Does quicktest professional (qtp) is unicode compatible?
how u will evaluate the tool for test automation?
How do you do batch testing in wr & is it possible to do in qtp, if so explain?
To which environments does quicktest professional (qtp) supports?
What are the two types of repositories available, explain them?
What is qtpro?
How reliable are the site's Internet connections required to be? And how does that affect backup system or redundant connection requirements and testing?
I had installed QTP 9.2. It is working fine but whenever I open QTP, it is trying to reinstall the below-mentioned files again and again "QTP92PS82UPGRADE.exe", "recogn.dll". If anybody has these files, please provide those files in this site or you can send that files to my mail id also (lravi4u@yahoo.com). If you don't know where the files will be in the QTP, search in the QTP software CD or path of QTP program installed (C:\Program Files\Mercury Interactive\QuickTest Professional)
How does quicktest professional (qtp) identifies the object in the application?
Limitations in QTP?
What are the challenges u faced in testing with crm domain? How u overcome with?