write is the code for regular expression in QTP
Answers were Sorted based on User's Feedback
Answer / raj
'Prepare a regular expression object
Set myRegExp = New RegExp
myRegExp.IgnoreCase = True
myRegExp.Global = True
myRegExp.Pattern = "regex"
Pop up a message box for each match
Set myMatches = myRegExp.Execute(subjectString)
For Each myMatch in myMatches
msgbox myMatch.Value, 0, "Found Match"
Next
Is This Answer Correct ? | 6 Yes | 1 No |
hi is there any chance to change encoding the password
How to make arguments optional in a function?
I have a drop down box to show selected number of records in result page.It contains 4 items like 10, 25,50 and 100. when i was recordes script for seelcting each item and checking selecting number of records in the result page( it is in the same page in the table format)it is generating a new page with same controls( objects) in the OR. how to avaid these in OR? is it possible to write DP for only these lines?, remaining(remaingin lines of code) objects i want use from OR only. One more problemis if change ( add /remove properties of an OBJECT in OR , my ( recorded )application is not running.
What is difference between the For..Next and While..Wend statements?
In automation testing Can we retest virtual object in the application after getting new version from the developers, is there any property will change for that object or it won't.?
wht is the difference betn check point and output value?
how to merge object repositories?
What is Cross browser testing? Does UFT support it?
hi everyone today is the first time i saw this website,and hi iam siraj,iam very impressed by seeing evryones response towards questions,iam a newcomer and i have got tryining in testing can anyone please send me some projects relaited to testing.i know it is very confidential but still if u send it will a great help. my mail id venku_krs@yahoo.co.in
Hi i want to export the data from applicatioon to excel and later i want to import and use it for my scripts hoe can i do this?
HOW DO U CALL A ACTION IN QTP?
how to identify an object which is not in the object repository identification can be done using descriptive programming.