I have read that Library files are loaded in QTP from bottom to top. But what I have observed is exactly the opposite. As soon as I click on the "+" button in Resources tab a new Textfield gets displayed but below all the loaded Library files. Can anyone please explain.
Also, I have also read that Library 1 is calling functions from Library 2, then Library 2 has to be at the bottom of the list. But I tried both ways around and its working fine for me. So I believe that irrespective of the library priority I can call any function. Then whats the use of Library priority?
There might be situations where you have huge libraries and the number of test scripts might also be very large. In such situations, library priority might come in handy as your most commonly used functions will be called bit quickly if you put them in your bottommost library.
The amount of time saved would be insignificant in most cases, but it again depends on the size of your library files and number of times the functions are called.
I think I got your point. When we load Library files at design time, they are loaded from Top to Bottom but when we actually run the script, then the Library files are processed from Bottom to top. Is that what you are saying?
have you tried with tarun examples, if not just try you will understand. the main point to be noted is QTP loads all the lib files in to the memory before executing the first statement in your action file.