Give a comment on Regular Expressions using QTP?

Answers were Sorted based on User's Feedback



Give a comment on Regular Expressions using QTP?..

Answer / nath .t

suppose if u want to check date field. Date field like as
mm/dd/yy. here we can use regular expression.

ex:-mm/dd/yy
here month cann't exceed 12
Date cann't exceed 31 days
yy cann't exceed present year

for this we can regular expression
[0-1][0-9]/[0-3][0-9]/07

ex:- Window is there, name of the window is window1
at first time. but at the time of testing its variate like
as window2, window3,...... at this time we can use regular
expressions.

regular expression for the above ex. is

!window*


we can give regular expression in CONSTANT VALUE
OPTIONS DIALOUGE BOX. u must enable the regular expression
option. like this way we can give regular expression.

Is This Answer Correct ?    2 Yes 0 No

Give a comment on Regular Expressions using QTP?..

Answer / thirumala reddy

Regular expression is checking the pattern rather than constant value.

when you are doing web testing the browser name is keep changing, so by using .* we can handle that.

Is This Answer Correct ?    2 Yes 0 No

Give a comment on Regular Expressions using QTP?..

Answer / ramu@sunnys

it is search string,it is used to identify the properties of
the objects that are changing in run time

Is This Answer Correct ?    0 Yes 0 No

Give a comment on Regular Expressions using QTP?..

Answer / ramu@sunnys

it is search string,it is used to identify the properties of
the objects that are changing in run time

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

How to test results for qtp ?

0 Answers  


How do you test siebel application using qtp?

2 Answers  


In website, protocol has been changed http:to https what you will do? tell me your approach?

1 Answers  


I want to do QTP Certification what is the pattern of Question paper.

0 Answers  


whenever U using QTP,Test Director, Why we using separate Bug tracking tool?

0 Answers  






how to change the properties of object during run time . plz give the code using flight reservation

2 Answers  


write a script to verify the image path(src property) of the images which are in web pages.(do it by Descriptive method by creating a description object)

1 Answers  


Can any one tell me Difference between Keyword Driven Frame work and Hybrid framework? Its Urgent.

2 Answers   IBM, Wipro,


www.icici.com ,after this.. home page wll came, in this page what r the items we r going to test for manual and what are items we r going to test for QTP... explian clearly with example

0 Answers   TCS,


Is virtual object supported in low level recording mode?

0 Answers  


Actually what is Quality center..is it Test Director or some other tool..Anybody can expalain it in detail..Thanks in advance..

3 Answers   Sony,


why do we go for Test Automation?

2 Answers  


Categories