Can we add the function library directly from scripting in
qtp instead of adding from resource tab?

Answer Posted / nath .t

Sorry for the small mistake in the above answer.



Set qtApp = CreateObject("QuickTest.Application")

qtApp.Launch

qtApp.Visible = True

qtApp.Open "C:\Tests\Test1", False, False

qtApp.Test.Settings.Resources.Libraries.Add "e:\Utils.vbs"

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can QTP be used for GUI testing ?, We are using Java with MySQL and Operating system is Linux. We are NOT using the web.

1948


What is object repository in qtp?

561


What is accessibility check point?

660


Explain how to use QTP to check broken links on a page?

587


Describe synchronization point.

579






What is the syntax to call one action in another?

554


Can anyone help.i need total excelsheet operations,shortcuts in testing environment from starting onwards....

1430


suppose in the middle of the project QTP will not work properly, then what do u do? and ur team?

1328


What do you to script when objects are removed from application?

616


distinguish between old version and new version QTP features.

1865


What is the difference between qtp and selenium?

549


How to use parameterization in qtp?

624


What is recovery scenario manager? When you go for recovery scenario manager?

595


How to get popup error message.

1030


Hi, I have 2 dropdown listboxes called region and city/area. It needs to select one region(Santa Clara) and one city/Area (Sunnyvale).So I put this in the for loop and I am storing the Items in the variable called itemname. The regions value will get changed,so I used reg expression for this regions. This is my code Browser("MLSListings.com").Page("MLSListings.com").Link("ยป County/Area").Click Browser("MLSListings.com").Page("MLSListings.com").WebList ("regions").Check CheckPoint("regions") ListSize=Browser("MLSListings.com").Page ("MLSListings.com").WebList("regions").GetTOProperty("items count") For i = 1 To ListSize-1 Itemname =Browser("MLSListings.com").Page ("MLSListings.com").WebList("regions").GetItem(i+1) Browser("MLSListings.com").Page("MLSListings.com").WebList ("regions").Select Itemname ................. If I run the script,I am getting the following error, Cannot identify the specified item of the regions object. Confirm that the specified item is included in the object's item collection. Any Help? Thank you, Uma

1348