Re: LoadFunctionLibrary with & without PathFinder (561 Views)
Reply
Advisor
Qathirst
Posts: 37
Registered: ‎09-22-2011
Message 1 of 7 (660 Views)
Accepted Solution

LoadFunctionLibrary with & without PathFinder

Hi,

We can use function 'LoadFunctionLibrary' with or without PathFinder:

 

LoadFunctionLibrary path

LoadFunctionLibrary PathFinder.Locate (path)

 

Which is better off the two? or do they serve different purposes?

 

Rgds.

Quality - a way of life!
HP Expert
Eickel
Posts: 147
Registered: ‎04-13-2012
Message 2 of 7 (645 Views)

Re: LoadFunctionLibrary with & without PathFinder

Hi Qathirst,

Thank you for your question.
The locate method returns the full file path that UFT uses for the specified relative path (resolves the path) based on the folders specified in the Folders search list (Tools > Options > GUI Testing tab > Folders pane) of the Options dialog box.

When you use instead: LoadFunctionLibrary (path) it might work faster since resolving the path is not required.
I hope this clarifies.

"HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution."
Advisor
Qathirst
Posts: 37
Registered: ‎09-22-2011
Message 3 of 7 (608 Views)

Re: LoadFunctionLibrary with & without PathFinder

Thx for the info, Eickel!
What happens if 'locate' is used & no folders are specified in the folders search list?...assuming an error would be thrown?
Quality - a way of life!
Occasional Contributor
Tech-gig
Posts: 4
Registered: ‎01-18-2010
Message 4 of 7 (573 Views)

Re: LoadFunctionLibrary with & without PathFinder

For my case pathfinder.locate smoothly.

I tried it only LoadFunctionLibrary but sometime it fails.

 

Thanks

Satish

HP Expert
Eickel
Posts: 147
Registered: ‎04-13-2012
Message 5 of 7 (561 Views)

Re: LoadFunctionLibrary with & without PathFinder

Hi Qathirst,

Yes, it displays the following error message:

Locatelibrary.jpg

As expected.

"HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution."
Advisor
Qathirst
Posts: 37
Registered: ‎09-22-2011
Message 6 of 7 (557 Views)

Re: LoadFunctionLibrary with & without PathFinder

Thx Eickel!
Dumb of me to not try...probably was easier to ask...:)
Appreciate the info.
Quality - a way of life!
HP Expert
Eickel
Posts: 147
Registered: ‎04-13-2012
Message 7 of 7 (553 Views)

Re: LoadFunctionLibrary with & without PathFinder

You're very welcome... It's my pleasure! :)

 

"HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution."
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.