In WinRunner some GUI functions are there (like GUI_load) so in QTP what r the methods r there?

Showing Answers 1 - 2 of 2 Answers

esaiesai

  • Feb 21st, 2006
 

yes, we have few methods to load object repository file into object repository file into object repository.

try with this code to load object repository file in to object repository.

set a=createobject("Quicktest.Application")

a.test.settings.objectrepositoryfilepath="give the object repository file path here"

just try with that code. if there is any error go to Test->settings->click on Generate Script after that save that in any drive. and then open that file in Notepad. u will get code to load object repository file.

  Was this answer useful?  Yes

The code is not working in QTP 9.0. But it worked fine in QTP 8.0. Please suggest something how to add the repository at run time in QTP 9.0 Set QtApp = CreateObject("QuickTest.Application") Set QtTestResources = QtApp.Test.Settings.Resources QtTestResources.Add "D:Part.tsr" Set QtTestResources = Nothing Set QtApp = Nothing

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions