is it possible to change the date format like MM/DD/YY
into DD/MM?YY through script in QTP
Answers were Sorted based on User's Feedback
Answer / m kumar
Date function in qtp displays current system date as
MM/DD/YY,So change this in to DD/MM?YY format below is the
process
Strday = day(date)
Strmonth = month(date)
Stryear = year(date)
Newformat = Strday&"/"&Strmonth&"?"&Stryear
| Is This Answer Correct ? | 21 Yes | 0 No |
Answer / guru
DD = Day(now)
If Len(DD) = 1 then
DD = "0" & DD
End If
MM = Month(now)
If Len(MM) = 1 then
MM = "0" & MM
End If
YY = Year(now)
YY = right(YY,2)
Date_Format = DD & "/" & MM & "?" & YY
| Is This Answer Correct ? | 9 Yes | 0 No |
Answer / lak
Strday = day(date)
Strmonth = month(date)
Stryear = right(year(date),2)
Newformat = Strday&"/"&Strmonth&"?"&Stryear
msgbox Newformat
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / maya
Dim years
years=inputbox("enter year as MM/DD/YY format")
x=mid(years,4,2)
msgbox x
y=left(years,2)
msgbox y
z=right(years,2)
msgbox x+"/"+y+"/"+z
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / snehasis
oldFormate = "MM/DD/YY"
array=split(oldFormate,/)
newFormate = array(1)+array(0)+array(2)
| Is This Answer Correct ? | 9 Yes | 8 No |
What is the Dynamic Scenario in QTP? And also anybody give the example for this?
Use of Debug Viewer?
What is the main difference between QTP 8.0& QTP 9.2.And what r the features and benefits of QTP.
how to check URL using QTP? write vb script with descriptive programm only?
which is the easiest way you can send the QTP test results to Client if he want to see the screenshots when the results are failed?
DIFFERENCE BETWEEN WR 8.2 & QTP 8.2? HOW TO INTEGRATE WITH SOME OTHER TOOLS?
Object Repositories types, which & when to use?
how do we know whether all objects are stored in the object repository or not? how can we know if a particular object is not stored in the repository?
In an(AUT) web application their are two frames as fraMain and fraFooter. Both the frames contain link which needs to be retrieved at a single step. I tried it using "Regular Expression" as fra.* but QTP doesn't recognize the object. So Plz help me out to get resolve the problem:-)
Hi All, I have QTP installed on my machine but the application under test (AUT) is on remote desktop.My scenarios is like that,it should contain following steps. 1)Automatically it should click on start and then on remote desktop connection. 2)it should enter the IP address and then connect to remote desktop. 3)and then it should be able to record the application in remote machine and then run it also. Can somebody tell me how to record the application which is in remote machine.
what type of values given to objects. EX::Set oBrowser=Description.Create oBrowser(“micclass”).Value=”Browser”
Mention the different actions types of qtp.