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 / ganesh kumar
Dim strTextValue
strtextValue = Browser("Browser").Pge("Page").Frame
("Frame").webEdit("Password").GetRoProperty("value")
If strTextValue <8 Then
Reporter.ReportEvent micFail,"Check for the Feild
validation","The Feild is accepting Lesserthan
lowerBoundary value"
ElseIf strTextValue>20 Then
Reporter.ReportEvent micFail,"Check for the Feild
validation","The Feild is accepting Greater than
UpperBoundary value"
Else
Reporter.ReportEvent micFail,"Check for the Feild
validation","The Feild is not accepting lesserthan or
Greater than the Boundary value"
EndIF
| Is This Answer Correct ? | 14 Yes | 12 No |
Post New Answer View All Answers
explain keyword driven framework with banking domain?
What is an optional step in qtp ?
when a test case is written how u test using qtp
can u explain the keyword driven framework with an example clearly how to create all the files and how to attach to main test.
What r the different filters in defect in quality center
What are the key points to create a framework in QTP for oracle forms?
i have doubt suppose iam purly working in QTP, when i will work on sql and performence testing? pls any one clarify doubt?
How do you convert manual test cases to automated test cases?
Hi All, How to get repeated word in string . Thanks Balaji
what is supply chain management?
is there any addin for remedy user application
How to interact tool & application build in QTP?
Hi, how can we check or avoid the memory leakage in QTP9.2?
If I change the property value at runtime is it effect is object repository?
Where is the Bitmap checkpoint information stored?