I got error as "object does not support this property or method: "Test.Actions" when i run the following script on QTP 9.0
Set qtApp = CreateObject("QuickTest.Application")
Set qtRep = qtApp.Test.Actions("Action1").ObjectRepositories
qtRep.Add ""&location&"\Wafer_Repository\Departmet.t sr"
Please anyone tell me where i am wrong.
Re: object does not support this property or method
I tried your code in 9.2 and it seemed to work fine, I did notice you have an empty string in your Add statement and you have Department misspelled. These shouldn't cause the error you are receiving and I don't know if these are on purpose. The repository add I used was like this: