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 2check the color of the text in the textfield . say suppose the text entered in the textfield object is appearing in red. so i want to check whether the text is in red color or not. It could be great help for me if any one solve's my issue. plz...help

5 Answers   Sinertel,


how to do regression testing in qtp? plz give ans with examples

6 Answers   TCS,


HOW TO FIND WEBTABLE? HOW TO RETRIVE THE WEBTABLE VALUES? PLZ TELL ME THE PROCEDURE.

2 Answers   TCS,


What are the versions of qtp,What are the differences b/n them?

1 Answers   TCS,


in login module login button chage regularly(means login button change to submit button).What is the code for it.

3 Answers  


you written some code in qtp for opening google.com browser and entered some text inthe search text box and clicked search button. this is ur script.. before running this script i have already opened two google.com browsers. now am running the script what will happen? script will run or what?? Thanks... Nani

4 Answers   Oracle,


I need to pull the data from the page which in row, column vice into excel sheet, how can it be done using QTP? eg: Name Dept xyz gdty i need the same data to be exported in excel sheet.

0 Answers  


Synchronizing test

3 Answers   Wipro,


Can you import and export data from XLS and how?

4 Answers  


I am sathish , i want to test the Application of JIL.org ,Mobile Emulator ,by using QTP10.0. I am trying to do testing on that Application , but Child Objects are not identified by the QTP. Please can any one help me

0 Answers  


what are the utilities and drivers

0 Answers   Cap Gemini,


with out object repository i need to launch IE and then navigate to a login page and then operate the objects within the page. How will be the script?

3 Answers   Ordain Solutions,


Categories