get the order no from the following orderdetails
orderstring="ORD13456PNR"
eg:13456
Answer Posted / friend
i think we ll get order no exactly by using regular expression
concept......
orderstring="ORD13456PNR"
set r = new regexp
r.pattern="[0-9]+"
set n=r.execute(orderstring)
for each num in n
prrint n.value
next
am i correct.....
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How do I generate Test Results window using descriptive method ( run time ) after my test execution process? Please have a look of my below code. ========================================================= Dim qtApp Dim qtTest Dim qtResultsOpt Set qtApp = CreateObject("QuickTest.Application") qtApp.Launch qtApp.Visible = True qtApp.Options.Run.CaptureForTestResults = "Always" qtApp.Options.Run.RunMode = "Fast" qtApp.Options.Run.ViewResults = True qtApp.Open "C:\Automation\Example", True Set qtTest = qtApp.Test qtTest.Settings.Run.OnError = "NextStep" Set qtResultsOpt = CreateObject ("QuickTest.RunResultsOptions") qtResultsOpt.ResultsLocation = "C:\Automation\Example\Res1" qtTest.Run qtResultsOpt MsgBox qtTest.LastRunResults.Status qtTest.Close Set qtResultsOpt = Nothing Set qtTest = Nothing Set qtApp = Nothing ========================================================== This code is working fine, but Test Result window is not displaying after execution. Anybody can please help me regading the same. Thanks Akshaya Madali Capgemini India Pvt Ltd 9823213538
How would you directly trigger javascript in a test?
Which functionalities of QTP used in banking project? pls any say answer?
How to import a test case present in ".xls" file to TD under a Test set?
Which HTML specification will be adhered to? How strictly? What variations will be allowed for targeted browsers?
Why do we use breakpoints in QTP?
When you open QTP, how many sheets you can see?
How to create Reusable and Multiple Actions?
What is the file extension of the code file and object repository file in QTP?
Can we access the java methods in qtp. Because my requirement is to access the swt(for eclipse an it is java code) methods in qtp is it possible?
Can we use index on view?
Does quicktest professional is unicode compatible?
When to use shared and local object repository?
what are all the fileds present in object repository?
Dear All , For UFT 12.02 which version QC or ALM will support ? Thanks Balaji