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

Tell me the situations where we will use Data Driven?

2 Answers  


How does qtp identify objects in the application?

0 Answers  


What is the difference between check point and output value.

5 Answers  


What processes will be required to manage updates to the web site's content, and what are the requirements for maintaining, tracking, and controlling page content, graphics, links, etc.?

0 Answers  


What are the benefits of quick test pro(qtp)?

0 Answers  






Hi, I am using OutputCheckPoint for 2 webelements Bed:4 and Bath:2 Full,1 partial in my result page and I am storing the value in the data table. I dont need the string Bed:4,I would like to get only the no 4. How can I get it? Even though I highlight only 4,It is seleting the full value "bed 4". Same thing happend for second webelement Bath:2 Full,1 partial I need only the No 2. I used the following to split MyArray = Split(UIBathResult, " ", -1, 1) But it is giving the value My Array(0)=Bath:2full,1Partial I need the only the nos for further comparision.Any help? Thanks Uma

1 Answers   Patni,


Hi, I am new to QTP testing and was exploring the frameworks used for automation. I wanted help in writing various scripts and files for keyword driven automation like 1. Control File 2. Test Case File 3. Startup Script 4. Driver Script 5. Utility Script . etc It would be great if someone can give help in this context ... Thanks

0 Answers  


Which property do you use to retrieve or assign data into a cell in a Data Table object?

1 Answers  


Suppose I want fail that check point? How can you do that?

0 Answers  


Syntax for how to call one script from another? and Syntax to call one "Action" in another?

3 Answers  


Explain building blocks of the bpt framework ?

0 Answers  


How to capture data from images in QTP and produce them in Excel sheet ? please ans...

3 Answers   Sapient,


Categories