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 / ashish sharma

str = "QTP is an automation testing tool "
Dim ianRegEx
Set ianRegEx = New RegExp
ianRegEx.Pattern = "[a-z]+[\s]*[0-9]+"
ianRegEx.Global = True
ianRegEx.IgnoreCase = True
msgbox ianRegEx.Test(str)

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are some test assets and related extensions of qtp?

556


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.

1303


Key word driven framework

1687


Is QTP supports Unix. If yes, then how the test automation is done?

1729


How to open a new test using quicktest professional?

574






Mention the test steps of qtp.

542


what r the main attributes of test automation?

1480


what are the critical test cases in crm? tell me atleast 5 critical test cases? what are the critical bug u find out while testing crm domain?

2740


After fixing the bug, the same bug is raising again and again in new builds what we have to do? That bug is high level bug.

5890


What are the steps involved in the recovery scenario wizard?

559


hi, can u tell me the QTP TEsting process in present real time companies?(beware of this... now a days Recording is not using,, only DP) and don't tell note book answers like step 1 spep2....like this .......post answer with professional skills in simple english words) thank u

1333


I want to read XML file loaded in Quality center and compare the values with the values displayed in Application (web table).How can I do that

1399


Explain how you can find the absolute value of the number in qtp?

648


How can i check items sorted or not in a weblist ? Give me the script for this...

1579


What are the types of environment variables in qtp?

545