Hi,
I cleared all the rounds in Microsoft but I was asked a question in QTP ie,
How to write regular expression for yahoo signup(Security code textbox). The security code changes everytime. So if it is containing digits(0-9),characters(A-Z,a-z). how do I write. I told
[0-9]{4,}[A-Z]{4,}[a-z]{4,}
But the Techical Lead showed me on his projector that it doesnt work. Why doesnt this work? Please give me the solution
sricharantester@gmail.com
YES. I am using QTP 9.2. I also checked the Regular Expressions checker link which you have given but when I entered [0-9]{4,}[a-z]{4,}[A-Z]{4,} but it doesnt return "True". Please tell me what should I enter?
Which Repository Parameter window should I select?
I mean should I select type, name or html tag?
where should I enter the value of Regular expression?
Please answer
sricharantester@gmail.com
I also have another doubt. When I enter the value in the name(In Description Properties), suddenly a pop up window opens asking if \ is required. What should I select "Yes" or "No"? Please see the attachment
thanks & regards,
sricharantester@gmail.com
First of all understand that CAPTCHA are not designed to be automated. The basic reason why CAPTCHAs were introduced was to keep automated programs/bots/spammers at bay. So if someone asks you to automate CAPTCHAs your answer should be "No, it's not possible". We do have roundabout ways but that's a topic in itself.
>>YES. I am using QTP 9.2. I also checked the Regular Expressions checker link which you have given but when I entered [0-9]{4,}[a-z]{4,}[A-Z]{4,} but it doesnt return "True". Please tell me what should I enter?
What is the test string?
>>Which Repository Parameter window should I select?
I mean should I select type, name or html tag?
where should I enter the value of Regular expression?
A parameter which has a dynamic value.
>>I also have another doubt. When I enter the value in the name(In Description Properties), suddenly a pop up window opens asking if \ is required. What should I select "Yes" or "No"?
\ is an escape character. It is used when a character used in regular expression needs to be used literally.