example-date format is 01-jan-09 in QTP.How to convert this
format to 01-01-09?
Answer Posted / harish
val = "01-jan-09"
Conv_Val = cdate(val)
msgbox Conv_Val
newvalue = replace(Conv_Val,"/","-")
values = split(replace(newvalue,right(newvalue,4),right(newvalue,2)),"-")
for i = 0 to ubound (values)
if Len(values(i)) <2 then
temp = temp & "0" & values(i) & "-"
Else
temp = temp & values(i)
End If
Next
msgbox temp
'Result : "01-01-09"
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to perform cross platform testing and cross browser testing using qtp? Can you explain giving some example?
how could i download qtp in which i get add-in support for 'oracle' is there any way to get it? i finding but not getting pls help me out :)
What is qtpro? What is quick test pro?
Want to verify notepad reports using QTP framework or any other BV script method. Can anyone share the method to achieve it? Eg. Person Name is the header and the actual name is John then how can we verify weather person name is John
An action has both shared and local OR associated with it and both have the same object in them. In the test which one will be considered?
explain structured testing? plz guys with exp. do answer
What test you perform mostly? Regression or retesting in your testing process?
Why script error occur in between recording in qtp?
How will you check a web application for broken links using qtp?
How will we compare the texts in the two word files using QTP writing the script in Descriptive Programming. Thanks
Limitations in QTP?
How does you test a weblink which is changing dynamically?
What are the steps involved in recovery scenario wizard?
Hi All, issue is related to handling pop up script generated in IE, and run on mozilla. In App Under Test, when we get the alert pop ups, we just click ok button. if we need to run the same code on mozilla it will not identify . so we will check browser if browser(*).dialog(IE object).exits browser(*).dialog(IE object).winbutton(OK).click else 'by default mozilla browser(*).dialog(mozilla object).page(*).webbutton(OK).CLICK END IF But my qustion is. Do we write the above piece of code where ever we get such kind of pop ups from the application like alert pop up, confirmation pop up.... OR do we have any other alternative way to do this by using any functions in Recovery Scebarios? If Any of u know idea please do help me in this regard. or send answer to kravimb@gmail.com
What is the difference between Keyword Driven test and Data Driven test?