The online community for software testing & quality assurance professionals
 
 
Calendar   Today's Topics
Sponsors:
Lost Password?

Home
BetaSoft
Blogs
Jobs
Training
News
Links
Downloads



Testing Tools >> HP Functional Testing / Mercury QuickTest Pro / QTP

Pages: 1
krag451
Member


Reged: 05/15/08
Posts: 43
QTP 9.5 Invalid Procedure Call Error on VBscript
      #504186 - 07/30/08 05:33 AM

Hi,

I am seeing a problem in QTP 9.5 where I'm getting an Invalid Procedure Call error on a VB script when QTP tries to load it. I am in the process of upgrading our 9.2 scripts to 9.5. 9.2 does not throw this error.

I have seen several posts about this on various forums including this one but so far I have not seen a solution posted. If you have a way around this can you post the solution here?

Below are more details on the error:

Line that is throwing the error:
Executefile("[QualityCenter] Subject\QTP_BT\vbs_lib\Load vbs.vbs")

Here is the error:
Invalid procedure call or argument

Line (1): "'-------------------------------------------------------------------------------".


Thanks

Krag


Post Extras: Print Post   Remind Me!   Notify Moderator  
RealmRevo
Junior Member


Reged: 08/22/05
Posts: 119
Re: QTP 9.5 Invalid Procedure Call Error on VBscript [Re: krag451]
      #504277 - 07/30/08 08:34 AM

try it after removing the paranthesis:
Executefile"[QualityCenter] Subject\QTP_BT\vbs_lib\Load vbs.vbs"


Post Extras: Print Post   Remind Me!   Notify Moderator  
TReddyModerator
Veteran


Reged: 01/17/07
Posts: 2565
Loc: Pittsburgh, PA
Re: QTP 9.5 Invalid Procedure Call Error on VBscri [Re: RealmRevo]
      #504281 - 07/30/08 08:53 AM

Quote:

try it after removing the paranthesis:
Executefile"[QualityCenter] Subject\QTP_BT\vbs_lib\Load vbs.vbs"



Space after ExecuteFile
Executefile "[QualityCenter] Subject\QTP_BT\vbs_lib\Load vbs.vbs"


Post Extras: Print Post   Remind Me!   Notify Moderator  
krag451
Member


Reged: 05/15/08
Posts: 43
Re: QTP 9.5 Invalid Procedure Call Error on VBscri [Re: TReddy]
      #504355 - 07/30/08 12:58 PM

Thanks for the suggestions but I still get the same error, even with these changes.

The error that I put in the post is actually from the VBscript itself. This makes me think that there is something wrong with the way QTP is reading VBscript file. Do these files also have to be upgraded in some way?


Post Extras: Print Post   Remind Me!   Notify Moderator  
NoUse4aName
Super Member


Reged: 06/13/08
Posts: 1720
Re: QTP 9.5 Invalid Procedure Call Error on VBscri [Re: krag451]
      #504357 - 07/30/08 01:06 PM

http://www.sqaforums.com/showflat.php?Ca...amp;Main=491514

QCpath = "[QualityCenter] Subject\MainProject\Lib"
FileName = "MainLib.vbs"
Dim App 'As Application
Set App = CreateObject("QuickTest.Application")
App.Folders.Add(QCpath)
TempFileName = PathFinder.Locate(FileName)
ExecuteFile TempFileName
Set App = Nothing


Post Extras: Print Post   Remind Me!   Notify Moderator  
TReddyModerator
Veteran


Reged: 01/17/07
Posts: 2565
Loc: Pittsburgh, PA
Re: QTP 9.5 Invalid Procedure Call Error on VBscri [Re: krag451]
      #504369 - 07/30/08 01:45 PM

Post your code here that is there inside vbs.

Post Extras: Print Post   Remind Me!   Notify Moderator  
Mukil_Krishna
Member


Reged: 12/03/07
Posts: 49
Re: QTP 9.5 Invalid Procedure Call Error on VBscript [Re: krag451]
      #504422 - 07/30/08 09:53 PM

iam not sure whether you can give it as
Executefile("[QualityCenter] Subject\QTP_BT\vbs_lib\Load vbs.vbs")
usually its
Executefile(Pathfinder.locate("Load vbs.vbs"))
you need to add Subject\QTP_BT\vbs_lib folder into folder path.....

Also please check if the Load vbs.vbs file has got any errors...


Post Extras: Print Post   Remind Me!   Notify Moderator  
Tarun LalwaniModerator
Veteran


Reged: 07/21/05
Posts: 15329
Loc: Milwaukee, Wisconsin
Re: QTP 9.5 Invalid Procedure Call Error on VBscri [Re: Mukil_Krishna]
      #504633 - 07/31/08 06:14 AM

If you are still getting an error then you should check your VBS file as such. I guess you might have issue in the same. Also make sure there is no option explicit at the top as even that sometimes causes issue

--------------------
Regards,
Tarun
** First ever technical novel - And I thought I knew QTP! **
** Download QTP Unplugged 2nd Edition eBook for FREE **

KnowledgeInbox RSS


Post Extras: Print Post   Remind Me!   Notify Moderator  
krag451
Member


Reged: 05/15/08
Posts: 43
Re: QTP 9.5 Invalid Procedure Call Error on VBscri [Re: Tarun Lalwani]
      #504745 - 07/31/08 10:25 AM

Thanks again for all the support and suggestions. I tried the code posted by NoUse4aName without success. I still get the same error. Below is the VB script code that is producing the error. QTP is failing on line 1. It is a comment. I'm wondering what QTP is expecting on this first line and why this changed from 9.2 to 9.5.

'#-----------------------------------------------------------------------------------
'# Load Script.
'#-----------------------------------------------------------------------------------
'#
'# VERSION: 1.1
'#
'# DESCRIPTION:
'#
'# This function load all libraries for the test environment. It should be called
'# at the start of each action.
'#
'#-----------------------------------------------------------------------------------
'#
'# REVISION HISTORY:
'#
'# DATE: PERSON: REASON:
'# ----------- -------------- ----------------------------------------------------
'# 26-NOV-2003 R. Bolstridge Original.
'# 01-NOV-2004 R. Bolstridge Function libraries are now .vbs files.
'# 09-NOV-2004 R. Bolstridge Moved to C drive.
'#-----------------------------------------------------------------------------------

'Define the location of the fu
'Path = "[QualityCenter] Subject\QTP_BT\vbs_lib\ReportAll.vbs"
executefile("[QualityCenter] Subject\QTP_BT\vbs_lib\ReportAll.vbs" )

ExecuteFile("[QualityCenter] Subject\QTP_BT\vbs_lib\DataTableGetData.vbs")
'ExecuteFile [Quality Center] "Subject\QTP_BT\vbs_lib\ReportAll.vbs"


Post Extras: Print Post   Remind Me!   Notify Moderator  
genevish
Junior Member


Reged: 07/12/04
Posts: 317
Loc: Marietta, Georgia
Re: QTP 9.5 Invalid Procedure Call Error on VBscri [Re: krag451]
      #504786 - 07/31/08 12:52 PM

We had this issue too, and resorted to using relative paths for all of our function libraries and shared OR's, and attaching the libraries to the tests. Probably not much help to you...

--------------------
Scott Genevish
Principal Consultant
Designed Quality


Post Extras: Print Post   Remind Me!   Notify Moderator  
MarkGrimwood
Newbie


Reged: 02/27/08
Posts: 12
Re: QTP 9.5 Invalid Procedure Call Error on VBscri [Re: genevish]
      #511657 - 08/26/08 03:31 AM

I have had the same error where QTP gave a message of "Invalid Procedure Call" on the first line regardless of the contents. It was eventually tracked down to an error in one of the .qfl modules being loaded, and not the main script or QTP.

Post Extras: Print Post   Remind Me!   Notify Moderator  
buststyles
Junior Member


Reged: 09/04/02
Posts: 9
Loc: Atlanta/GA/USA
Re: QTP 9.5 Invalid Procedure Call Error on VBscri [Re: MarkGrimwood]
      #526274 - 10/22/08 07:13 AM

All there is an updated dll file TDSerializeMgr.dll(dated 3/20/2008). Replace the old file located at “C:\Program Files\HP\QuickTest Professional\Bin\TDSerializeMgr.dll”

This should solve the problem. The file should be available from HP support.


Post Extras: Print Post   Remind Me!   Notify Moderator  
Ravi1976
Member


Reged: 10/25/07
Posts: 181
Loc: Brussels, Belgium
Re: QTP 9.5 Invalid Procedure Call Error on VBscri [Re: buststyles]
      #526447 - 10/23/08 01:00 AM

Hi Krag,

I also faced same problem with QTP 9.5 and followed the workaround...

' Old one - Absolute path
Executefile("[QualityCenter] Subject\QTP_BT\vbs_lib\Load vbs.vbs")

' New One - Relative path
Executefile("Load vbs.vbs") ' before executing this line add path in QTP Options([QualityCenter] Subject\QTP_BT\vbs_lib\)

Please let me know for more information...

--------------------
Ravi - http://www.testingfaqs.co.in

***** Help others it will help you *****


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 34 anonymous users are browsing this forum.

Moderator:  IanFraser, Rajkumar_Rajangam, thorwath, TReddy, AJ, Tarun Lalwani, mwsrosso 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 6331

Rate this topic

Jump to

Contact Us | Privacy statement SQAForums

Powered by UBB.threads™ 6.5.5