Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
This is a discussion on Error with CreateObject within the QTP forums, part of the Software Testing category; HI, I am using the following line in my script set qtApp = CreateObject("QuickTest.Application") to create an instance of QTO so as to be able to associate the object repository ...
|
|||||||
|
|||
|
Error with CreateObject
HI,
I am using the following line in my script set qtApp = CreateObject("QuickTest.Application") to create an instance of QTO so as to be able to associate the object repository with the script But while executing the script i am getting a run time error. Not much details displayed, just ' General Run Error' I have even declared the variable qtApp. Any idea what can be the reason. I am using QTP on citrix server(could that be a reason, though i doubt it) Any help would be greatly appreciated |
| The Following User Says Thank You to shiva_mi For This Useful Post: | ||
| Sponsored Links |
|
|||
|
Re: Error with CreateObject
But QTP is throwing up a run time error when it comes to the first line itself of
set qaApp = CreateObject("QuickTest.Application") It is not even progressing further is there any specific libabry file that has to be loaded at run time? |
|
|||
|
Re: Error with CreateObject
It can be because you are running it on the server, as I have not worked with Citrix applications. However, the script that I posted works perfectly on mine.
Anyhow, I doubt this is going to work either, but try this and see if this works: Dim oIEApp Set oIEApp=CreateObject("InternetExplorer.Application") oIEApp.visible=True |
|
|||
|
I also had this issue. It has to do with the quicktest dcom object.
Either it doesn't exist, the permissions aren't correct, it is being run under the wrong user or it is trying to run remotely on a different computer. Your configuration will depend greatly on what you are trying to achieve, however here are the steps to set up a basic config to run on the local machine: 1) open the dcom configuration tool by going start -> run -> dcomcnfg from there expand component services, then computers, my computer, dcom config. 2) Locate quicktest professional automation, right click it and open properties. 3) General tab: set authentication level to default 4) Location tab: check run application on this computer uncheck the other two options 5) Security tab: you should be able to set all options as "use default". If you start getting a permissions error after changing these, you may need to give your current user privileges. If you're sure the user already has privileges but still get the permissions error, open task manager and look for qtautomation.exe in processes - if it's there, kill the process, and try again. 6) Endpoints tab: "... Default system protocols ..." is all that should be displayed 7) Identity tab: select "the interactive user" Hope that helps! Quote:
Last edited by brainwood; 05-15-2008 at 02:03 AM. Reason: why not? |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| IO Error | malashanbhag | Seibel | 0 | 10-19-2007 09:03 PM |
| Getting error "syntax error in ObjectRepository" | siteuse | QTP | 1 | 07-05-2007 04:57 PM |
| DB2 Error | Geek_Guest | DB2 | 0 | 06-16-2007 05:59 PM |
| Report Net on XP gives error, Cryptographic error has occured | chandrabhoopathy1 | Data Warehousing | 0 | 05-24-2007 07:07 PM |
| NSL mapping error | JobHelper | Data Warehousing | 0 | 01-11-2007 06:54 AM |