suppose im having a string wipro123xyz i need to get the
value 123 only from the string today 123 will be in the
middle from tommorow it will be changing to front or back
how to get the no if it changes continously?
Answers were Sorted based on User's Feedback
Answer / sailaja
txt="123wiproxyz"
mypos=instr (1,txt,"123")
msgbox mypos
k=mid ( txt,mypos,3)
msgbox k
| Is This Answer Correct ? | 7 Yes | 1 No |
Answer / aiswaryan
Function RegExpTest(patrn, strng)
Dim regEx, Match, Matches ' Create variable.
Set regEx = New RegExp ' Create a regular expression.
regEx.Pattern = patrn ' Set pattern.
regEx.Global = True ' Set global applicability.
Set Matches = regEx.Execute(strng) ' Execute search.
For Each Match in Matches ' Iterate Matches collection.
RetStr = RetStr & Match.Value' & vbCRLF
Next
RegExpTest = RetStr
End Function
a=(RegExpTest("[0-9]", "1234_Today"))
msgbox(a)
"a" contains the numbers in the given string from 1st to
last position.
If anybody know smarter way to achieve above task, please
post the answer.
| Is This Answer Correct ? | 2 Yes | 0 No |
what is the object properties settings in the QTP
what are the metrics in general we use in testing.
i have 100 manual test cases, how to automate from no 1. ols detail steps
which checkpoint we use to validate yahoo login screen window after login with ur id and password in qtp
Browser("Las Vegas Hotels - Las").Page("Vegas Hotels - Hotels").Link("Luxor") ......here Luxor is a hotel and this is recognised as a link. I have many hotels like Luxor, Palms etc which are all displayed as link...How do I parametrize this by using webtable functions??? ASAP
After executing the script in qtp suppose i found some script execute successfully and found some error.So how to report the status for both (i.e pass and fail report)in test director. For "fail" We use "defect tab" in testdirector. But for "pass" how to report it to TL.what is the process plz anybody ans
Can any suggest me what is exposure testing?
I have written some scripts in QTP by using older version, but I want to run them in latest version. Is there any process to do that.If so can anyone explain me?
How to suppress warnings from the test results page?
tell me types of environment variables? what r they? explain details? pls give anwer any one?
What is the descriptive programming?
What is the advantage of associating a procedure with a test object?