Satyam: You need to activate QTP through VBscript. The following URL discusses library include considerations. http://www.sqaforums.com/showflat.php?Cat=0&Number=396463
For me, the most interesting aspect is the attachment #400334. The full script can be found at http://www.sqaforums.com/attachments/400334-QTPAutomation.txt In the following code, all of the libraries are being removed. Dim App 'As Application Set App = CreateObject("QuickTest.Application") App.Launch App.Visible = True App.Options.Run.ViewResults = True App.Open "C:\fullPathToQTP", False App.Test.Settings.Resources.Libraries.RemoveAll App.Test.Save ' Save the test Set App = Nothing Steps: 1. In QTP test, manually insert a library into Test settings, tab = Resources. 2. Save the QTP file 3. exit QTP 4. Run the above vbscript code 5. examine the test Setting, Resources tab. No library is displayed. hth, Parke On Dec 18, 2:41 am, Satyam K <[email protected]> wrote: > Hi Bhuvan and Ravi Sid thanks for giving ur valuable responses > > i checked with ur lines in the belowing way in my qtp tool > > 'assume that some function libraries are already loaded > > Dim qtApp > Set qtApp = CreateObject("QuickTest.Application") > qtApp.Test.Settings.Resources.Libraries.RemoveAll > > But i am getting > > "This operation can not be performed during run session" dialogue box > > Please let me know whts wrong with this > > Thanks in advance > > Thanks, > > Satya > 9701001554 > > > > On Mon, Dec 17, 2012 at 7:11 PM, Ravi Sid <[email protected]> wrote: > > Hi, > > > You need to use Executefile "abc.vbs" which load the library > > functions during run time . > > > On Mon, Dec 17, 2012 at 12:04 PM, <[email protected]> wrote: > > > Hi Frnds, I am loading the library functions at run time by using > > > LoadFunctionLibrary statement. then what my requirement is i want to > > remove > > > the Function library at run time once the execution of that function > > > completes i want to remove/unload the function from the test script is it > > > Possible to Unload the Function Library's at run time if possible plz > > tell > > > me the procedure Your help would be much appreciated. Thanks in Advance > > > Thanks, Satya > > > > Mail sent via way2sms. > > > > -- > > > You received this message because you are subscribed to the Google > > > "QTP - HP Quick Test Professional - Automated Software Testing" > > > group. > > > To post to this group, send email to [email protected] > > > To unsubscribe from this group, send email to > > > [email protected] > > > For more options, visit this group at > > >http://groups.google.com/group/MercuryQTP?hl=en > > > -- > > You received this message because you are subscribed to the Google > > "QTP - HP Quick Test Professional - Automated Software Testing" > > group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected] > > For more options, visit this group at > >http://groups.google.com/group/MercuryQTP?hl=en- Hide quoted text - > > - Show quoted text - -- You received this message because you are subscribed to the Google "QTP - HP Quick Test Professional - Automated Software Testing" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/MercuryQTP?hl=en
