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 the use of ordinal identifier in qtp?
Explain in brief about the quicktest professional automation object model?
Explain in brief about the quicktest professional (qtp) automation object model?
In the application that I'm testing is having a WYSIWIYG editor.QTP is recording editor's body as web element. I want to add some data to this web Element at run time. The problem is that I cant find a method to add contents to this web Element. Can any one come up with an answer for this. Thankx.
What are the recording modes in wave event?
When to use descriptive programming?
What is difference between run time object and test object?
how to prepared for first for the first interview?
I am sathish , i want to test the Application of JIL.org ,Mobile Emulator ,by using QTP10.0. I am trying to do testing on that Application , but Child Objects are not identified by the QTP. Please can any one help me
What is the difference between a Function and Action in QTP?
Where to use Property Let, Property Get, Property Set in UFT
In qtp, how you can remove the spaces from string?
How can we conduct U-I Testing by using QTP??????
What is recovery scenario in qtp?
In QA Testing when do you use Loadrunner vs QTP? What are the main differences between those two tools? Explain the purpose with real world scenario examples...In advance thank you!!!