How can we add regular expression for date field
(dd/mon/yyyy)?

Answers were Sorted based on User's Feedback



How can we add regular expression for date field (dd/mon/yyyy)?..

Answer / vengi

Open Object Repository
and selsct value ,
click on constant value,
it displays on edit box with Regular Expressionchecbox,
select check point
and enter values
For example: for data field(DD/MM/YYYY)
RE:[0-3][0-9]/[0-1][0-2]/[0-2][0-9][0-9][0-9]

Is This Answer Correct ?    11 Yes 11 No

How can we add regular expression for date field (dd/mon/yyyy)?..

Answer / samiran sil

"sDate" is the normal date-

sDay=Datepart("d",sDate)
sMonth = Datepart("m",sDate)
sYear = Datepart("yyyy",sDate)
If Len(sDay) = 1 Then
sDay = "0" & sDay
End If
If Len(sMonth) = 1 Then
sMonth = "0" & sMonth
End If
sDate = sMonth & "/" & sDay & "/" & sYear

Is This Answer Correct ?    2 Yes 2 No

How can we add regular expression for date field (dd/mon/yyyy)?..

Answer / shivani

for dd/mon/yyyy format--> [0-3][0-9]/[a-z]|[A-Z]/[a-z]|[A-
Z]/[a-z]|[A-Z]/[0-2][0-9][0-9][0-9]

Is This Answer Correct ?    8 Yes 13 No

Post New Answer

More QTP Interview Questions

Please mail me the license key of QTP 9.5 t v.sadangi@gmail.com ????? thx

0 Answers  


In ordinal identifier there r 3 options available. Which one will be enabled first when ordinal identifier is invoked.

3 Answers   Cap Gemini,


which command u will use to access the application through descriptive programing?

7 Answers   Datamatics,


wht type of User defined functions or Java Releated functions do we write in VB scripting

0 Answers   Wipro,


Hi to All, My name is Aditya, i have 4 year exp in software testing (Manual Testing), but i try to shift my career now in automation testing. right now i have no exp or u can say i am not hand exp in live application. So please guide me, what i do ???? Can i join again automation course only practical which is live application. if u know any person who's expert in qtp and he/she ready to take my class i have our own and company laptop. If required i will pay amount please don't mind. Please help me, and i am also planing to join core java from coming 1st Aust (in seed) for only purpose the understanding script of Automation (QTP)... Please help me... I am waitting u r replay... Thank you Thanks again

5 Answers  






Expalin Text/Text Area Checkpoint

1 Answers   Crea,


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

2 Answers  


When i use paramateriztion for tickets in flight reservation application , the tes'll run for first iteration but for the second iteration it'll give this details, but the second iteration is failed. Pls anyone clarify it. Cannot find the "Agent Name:" object's parent "Login" (class Dialog). Verify that parent properties match an object currently displayed in your application.

2 Answers  


How can we do this one ? at runtime qtpwindow and browser aren't disply on monitor (or) aren't visible on desktop?how?

1 Answers  


can u tell me the the cost of automation tool QTP ?

7 Answers   Ducont, Sonata,


how u track bugs using Test director in manual testing.

2 Answers   Accenture, FCG,


If a object property is changed in the application. where it should be updated in QTP... Pls anybody can give the answer.. Thanks in advance...

4 Answers   Navis,


Categories