get the order no from the following orderdetails
orderstring="ORD13456PNR"
eg:13456
Answer Posted / babu
The answers mentioned above will work only when we know the
format of the data entered.
But if you want to generalize the function.
We have to select each and every character from the string
and check when the character is a numberic of alphabet.
If it is numeric, then you can add it to a temporary
variable. So, we will get the value of the order number.
Is This Answer Correct ? | 2 Yes | 0 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 is a Step generator used in UFT?
Explain about the quicktest professional (qtp) automation object model?
How is recording done when a application is over lapping the QTP application it gives a message object not recorded
What is the file extension of the code file in qtp?
what is actually contain test report? can anybody post the test report
Which recording modes need more memory?
Explain the concept of how quicktest professional identifies object?
How many tabs are available to view your test in a test pane and what are they?
Shall we add Local Repository to shared object repository,if yes,how we add
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 ?
What is ‘object spy’ and what is the function of object spy in qtp?
Key word driven framework
Through array we can execute the testcase how ? give me example
What is accessibility check point?