05-10-2011, 08:48 PM
hello,
can any one please explain below function:
i understand function object but "TestLocation=objQTP.Test.Location" in this line i am not understand "Test" role.
can any one please explain below function:
i understand function object but "TestLocation=objQTP.Test.Location" in this line i am not understand "Test" role.
Code:
FUNCTION GetFileLocation (ByRef sFolderName, ByRef sFileName)
Dim objQTP
Set objQTP = CreateObject("QuickTest.Application")
TestLocation=objQTP.Test.Location
var=split(TestLocation,"\")
i=UBound(var)
var(i-1)=sFolderName
var(i)=sFileName
TestDataLocation=join(var,"\")
GetFileLocation = TestDataLocation
Set objQTP = Nothing
END FUNCTION