Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Relative path
#7
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi Elango,

Please go thru the following pseudo code. Please correct me if i am going wrong anywhere.

Test script1 @ D:\Tests\Automation\<AUT>\Test Scripts\<High Level Test suite>\
Test script2 @ D:\Tests\Automation\<AUT>\Test Scripts\<High Level Test suite>\<Low Level Test Suite>
Both of them use the function library @ D:\Tests\Automation\<AUT>\Function Libraries\AUTFunctions.qfl

Function GetAUTRootFolder()
GetAUTRootFolder= PathFinder.Locate("..\..\..\")
End Function

Above will give the path D:\Tests\Automation\<AUT> when Test script1 is run, but i think it will yield to D:\Tests\Automation\<AUT>\Test Scripts\ in case of Test script2 execution which is incorrect.

Please correct me if my understanding is wrong.

Thanks
Sams
Reply


Messages In This Thread
Relative path - by sams001 - 12-04-2012, 11:14 PM
RE: Relative path - by elango87 - 12-06-2012, 04:21 PM
RE: Relative path - by sams001 - 12-06-2012, 07:58 PM
RE: Relative path - by sams001 - 12-12-2012, 06:19 PM
RE: Relative path - by supputuri - 12-11-2012, 12:13 AM
RE: Relative path - by elango87 - 12-13-2012, 05:50 PM
RE: Relative path - by sams001 - 12-13-2012, 09:07 PM
RE: Relative path - by elango87 - 12-14-2012, 11:31 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  how to get relative path by using testdir environment variable Sathyaprasad 1 1,950 11-30-2017, 02:21 AM
Last Post: supputuri
  Path of Flight reservation Window is not recorded in HP UFT 12.52 version mailtokopalverma@gmail.com 1 2,702 04-01-2016, 05:34 PM
Last Post: vinod123
  X path Identification vasavi.vasavi 1 2,997 07-29-2015, 10:44 AM
Last Post: kbhargava505
  environment variable path for qc automation2012 0 2,873 01-18-2015, 08:18 AM
Last Post: automation2012
  Change Object Repository File Path for ExternalActions MasterChief 1 4,694 11-13-2014, 06:05 PM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 2 Guest(s)