How To write script in QTP For Field Validation Example:
password Field is accepting A range 8-20 characters
only.How to write script?

Answer Posted / uday

here the question is how to find the max and min. lengths
the webedit accepts?

To find the max length of the web edit, try with "max
length" property.
temp=browser("Browser").Page("Page").WebEdit("username").GetROProperty("max
length"). It works.

I am not sure about the min. legth.

Thanks,
Uday.

Is This Answer Correct ?    5 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is different command used in command Prompt while using QTP?

1852


How to test background color and dynamic images during run time can you put the check point for moving objects?

1547


I had installed QTP 9.2. It is working fine but whenever I open QTP, it is trying to reinstall the below-mentioned files again and again "QTP92PS82UPGRADE.exe", "recogn.dll". If anybody has these files, please provide those files in this site or you can send that files to my mail id also (lravi4u@yahoo.com). If you don't know where the files will be in the QTP, search in the QTP software CD or path of QTP program installed (C:\Program Files\Mercury Interactive\QuickTest Professional)

1583


On what document base Descriptive programming is written if build is not yet ready ?

975


Hoe can we do retesting using functions please give the code for it using login page

1650






how do u plan test automation?

1536


What is the use of "New Property" in "Add properties" of testobject properties in object repository. How can i use "New properties" while writing scripts if i have assign some values to the testobject properties Can anyone help me? plz

1564


I have qtp 9.5 demo ver,I am not able to record the yahoo broeser.so anyone can tell me what setting i have to do in QTP for yahoo brower recording. why its not recognise the object of yahoo browser????

2267


if mandatory and Assitive propertys are shows same how will u write skript in QTP window

1729


HI Everybody, I am using QTP 9.2, I have a problem and hope everybody help me solve it. Now I need to use mouse wheel event to zoom in or zoom out in web client, but QTP can't catch this event. I look forward helping of everybody. Thank you very much.

1739


suppose in the middle of the project QTP will not work properly, then what do u do? and ur team?

1404


How you can replace string in qtp?

657


What is meant by a Check Point in UFT? Also, explain the applicable Check Points.

788


How to connect the remote desktop using QTP 9.2 explain the method or procedure?

2893


Hi Samrat, Thank u very much, what u said it is right.

1473