how to calculate no. of repeating characters in a a
string..please give me the code
Answer Posted / rayudu
suppose you have a string like
"God is Great"
A="God is Great"
Cnt=split(A,"G")
msgbox Ubound(Cnt)
will display 2
| Is This Answer Correct ? | 28 Yes | 6 No |
Post New Answer View All Answers
I used the below code to open QTP through VBscript?But i can unable to Invoke QTP...PLZ help me with the correct code to invoke QTP through VBS with description of the code aswell. Dim qtApp 'As QuickTest.Application 'Declare the Application object variable Dim qtTest 'As QuickTest.Test 'Declare a Test object variable Dim qtResultsOpt 'Declare a Run Results Options object variable Set qtApp = CreateObject("QuickTest.Application") 'Create the Application object qtApp.Launch 'Start QuickTest qtApp.Visible = False 'Make the QuickTest application visible qtApp.Open "C:\form", True 'Open the test in read-only mode 'set run settings for the test Set qtTest = qtApp.Test qtTest.Run 'Run the test 'WScript.StdOut.Write "Status is: " & qtTest.LastRunResults.Status 'Check the results of the test run qtTest.Close 'Close the test qtApp.quit 'Close QuickTest Pro Set qtResultsOpt = Nothing 'Release the Run Results Options object Set qtTest = Nothing 'Release the Test object Set qtApp = Nothing 'Release the Application object
How can i use virtual objects? If have i created one new virtual object in a virtual object manager by following instructions.
How to customize qtp?
I am trying to install QTP 9.5 but i am getting error message saying that ("Path is \QuickTest Professional\bin\vb_init.exe") vb_init.exe file is not find. can anybody give me the advise what to do ?
If the weblist is identified as webelement,and by clicking on webelement if the values are displayed,and if the values the values also identified as webelement.then how to fetch the values through script?
While spliting an action in QTP 10.0 getting an error : "This Line is a part of Script Block.You cannot split the action on this line." how to re-solve this and split the script into actions?
How do you check ticket cost and ticket number in flight application?
How many types of recording modes in qtp? Describe each type with an example where we use them?
What is the syntax to call one action in another?
How you calling actions in qtp?
What is the use of Debug Viewer?
How can we use the "CreateObject("Shell.Application")" in QTP and what is the definition and purpose of it?
How do you synchronization point through DP?
What are benefits of qtp?
i am looking job in perfomance testing using Loadrunner any one help me a project plz......?(Chandana) chs_29@rediffmail.com