How can we add regular expression for date field
(dd/mon/yyyy)?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
What does VBS file contain..? what is VBS file.?
I am using excel sheet to export data to QTP but it selects just one row of data from excel sheel how to import all rows of excel sheet to QTP during runtime
i have 100 manual test cases, how to automate from no 1. ols detail steps
Can anybody give the script to addsheet, add column,add values under that column in the rows?
How can you identify the browser and its information using QTP script?
In Descriptive programing if i use this below code will it work for login window or flight Res Window. Shud i add the properties like attached text=login and text=Agent Name in the object repository and define a new object first. Pls tell me the procedure in clear inorder to execute this script. Dialog("title:=Login").WinEdit("attached text:=Agent Name:").set"agent123" Dialog("title:=Login").WinEdit("attached text:=Password:").set"mercury" Dialog("attached text:=Login").winbutton("text:=OK").click
What is quicktest professional (qtp)?
How to create Userdefined Function.Please write the steps ans also provide example where exatcly we use it.
What are the recording modes in wave event?
How Does Run time data (Parameterization) is handled in QTP?
We need to verify the user name & password in for the user validation. But we don't want to use the parameterization/ loop for user name and password. What is the way in scripting so that user & password will generate automatically.
Hi All, How to get repeated word in string . Thanks Balaji