On running a vbs file with the below code, I am getting error: "ActiveX component can't create object"
This is the code in the vbs script:
Public str_Browser, str_TypeName
Dim RepositoryFrom, str_openObjRepository, str_saveObjRepository
Set RepositoryFrom = CreateObject("Mercury.ObjectRepositoryUtil")
Do you have QTP installed on that machine?
Tarun Buy the NEW QTP Descriptive Programming Unplugged Book ** Download QTP Unplugged 2nd Edition eBook for FREE **
Yes, I have it installed.
Any ideas how I can fix this?
It works fine when I run it from QTP but from the .vbs file it fails.
I found this searching the forum, but it may be dated. http://www.sqaforums.com/showflat.ph...mp;Main=594254
Patience is like bread I say.... I ran out of that yesterday.
ok, I know your issue
Add "<QTP Folder>\bin" path to your system PATH environment variable. That should do it