How do you find out whether the string is Numeric or Alpha
numenric.Suppose..'QTP is an automation testing tool 12345'
How should I know it is alphanumeric.Can any one please
write the code for this
Answer Posted / mrclock
A.thirumalareddy was on the right track, but here is a
revised and working version of his code:
Function IsAlphaNumeric()
Dim strText: strText = "QTP is an automation testing tool
12345" 'Search String
Dim ianRegEx
Set ianRegEx = New RegExp
ianRegEx.Pattern = "[^a-z0-9]" 'Define Search Pattern
ianRegEx.Global = True 'Apply Globally
ianRegEx.IgnoreCase = True 'Ignore upper/lower case
IsAlphaNumeric = ianRegEx.Test(strText) 'Use Test method
for a True/False test
msgbox IsAlphaNumeric 'Display True/False
End Function
call IsAlphaNumeric()
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is text/text area checkpoint?
How to define array in qtp?
How to analyzing test results using quicktest professional (qtp)?
hi guys, pls tell me for testing institution training hub, hitech city is best or not?
How to open a new test using quicktest professional (qtp)?
Hi all, I am using windows vista, I am in the process of learning QTP. When ever I try to work with insert mode in flight application , i am getting the error of 'Operation must use an update table query, fractional truncation(null) error. Can anyone help me regarding this?
what frame work you are following?
What are the benefits of quick test pro(qtp)?
you are recording on "WINDOW 1", say it has a link if you click on that, that leads you to "WINDOW 2". If you do any manipulations on "WINDOW 2" that are automatically updated in to "WINDOW 1". But "WINDOW 1" is currently invisible. But the updations in "WINDOW 1" must also be recorded as a script in QTP. The best Example is if you update your resume in JOB STREET portal it actually happens in other window, but the previous window is automatically updated. Now does QTP help you in this types of situations? Any body can answer this question. please..... Siva
How to associate shared object repository to test in qtp?
I want to know what are QTP functons and what are VB script functions. What is the difference between them.When we have to use these functions.
When I click on a link in web page.Link should open in new window.can anyone please let me know the script for this ---Koti
What processes will be required to manage updates to the web site's content, and what are the requirements for maintaining, tracking, and controlling page content, graphics, links, etc.?
How to handle the exceptions using recovery secnario manager in quicktest professional (qtp)?
Why qtp the best testing tool?