Thursday, 24 September 2015

How to Load an XML File in QTP?




'Microsoft.XMLDOM is a COM object of Microsoft's XML parse
 
Set objxml=createobject("Microsoft.XMLDOM")
'Async property specifies whether asynchronous download of the document is permitted or not
objxml.Async = False
'objxml.Load"Path of the file"
objxml.Load"D:\Datafile.xml"

qtp script to return specific weekday name-VBScript Weekdayname function-script in qtp to display specific weekday name-QTP Scripts-VBScript examples

Dim a

a=WeekDayName(1)

Msgbox a

Dim a

a=WeekDayName(5)

Msgbox a

Output-Sunday



No comments:

Post a Comment