Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
location function
#1
Solved: 10 Years, 9 Months, 1 Week ago
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.

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
Reply


Messages In This Thread
location function - by Anamika sinha - 05-10-2011, 08:48 PM
RE: location function - by supputuri - 05-10-2011, 09:22 PM
RE: location function - by Anamika sinha - 05-10-2011, 09:28 PM
RE: location function - by supputuri - 05-10-2011, 10:04 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to paste file location in QTP camillelola 0 1,344 08-09-2018, 10:54 AM
Last Post: camillelola
  Calling a function in a Test Script from a function library anupam4j 3 5,908 06-26-2015, 12:31 AM
Last Post: babu123
  Selecting file saved in a location excellentpawan 1 3,838 02-25-2014, 02:05 PM
Last Post: guin.anirban
  Copy file to network shared location sams001 0 2,970 04-03-2013, 02:10 AM
Last Post: sams001
MyBB Saving an excel file with the same name and same location after updating few columns pKrishna 1 4,746 01-04-2013, 04:40 PM
Last Post: Ankesh

Forum Jump:


Users browsing this thread: 2 Guest(s)