Geeks Talk

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.

Error with CreateObject

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 ...

Go Back   Geeks Talk > Software Testing > QTP
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 01-22-2008
Junior Member
 
Join Date: Jan 2008
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
shiva_mi is on a distinguished road
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
Reply With Quote
The Following User Says Thank You to shiva_mi For This Useful Post:
Sponsored Links
  #2 (permalink)  
Old 01-22-2008
Moderator
 
Join Date: Oct 2007
Location: Frankfort, KY
Posts: 283
Thanks: 3
Thanked 54 Times in 36 Posts
Anshoo_Arora is on a distinguished road
Re: Error with CreateObject

Try this:

set qtApp=CreateObject("QuickTest.Application")
QtApp.visible=true
Reply With Quote
  #3 (permalink)  
Old 01-22-2008
Junior Member
 
Join Date: Jan 2008
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
shiva_mi is on a distinguished road
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?
Reply With Quote
  #4 (permalink)  
Old 01-22-2008
Moderator
 
Join Date: Oct 2007
Location: Frankfort, KY
Posts: 283
Thanks: 3
Thanked 54 Times in 36 Posts
Anshoo_Arora is on a distinguished road
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
Reply With Quote
  #5 (permalink)  
Old 05-15-2008
Junior Member
 
Join Date: Jan 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
brainwood is on a distinguished road
Lightbulb Solution: Error with CreateObject

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:
Originally Posted by shiva_mi View Post
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

Last edited by brainwood; 05-15-2008 at 02:03 AM. Reason: why not?
Reply With Quote
Reply

  Geeks Talk > Software Testing > QTP

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


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


All times are GMT -4. The time now is 04:48 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved