SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Member
    Join Date
    Apr 2008
    Location
    Pune
    Posts
    420
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Unable to call vbs file function

    Unable to call vbs file function. I am using QTP 10.0. Same set up is there in 2 different machines. But in 2nd machine unable to call VBS file functions. I have verified the path and syntex as well. Everything is fine. Can someone help me in this?

  2. #2
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: Unable to call vbs file function

    What is the error? Unable to call doesn't tell much about the issue

  3. #3
    Member
    Join Date
    Apr 2008
    Location
    Pune
    Posts
    420
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Unable to call vbs file function

    Type mismatch "FunctionName". I have verified the name of the function. It is perfectly alright.

  4. #4
    Senior Member
    Join Date
    Sep 2007
    Posts
    114
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Unable to call vbs file function

    Have you attached your function to your test and verified the function is not repeated in any of the attached resources??
    -Soumya

  5. #5
    Member
    Join Date
    Apr 2008
    Location
    Pune
    Posts
    420
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Unable to call vbs file function

    I have attached vbs FILE through test settings - > Resources
    Following is the function name:-
    Public sub msgtest
    msgbox "hi"
    end sub

    I am calling msgtest using Call msgtest in QTP action. Still getting type mismacth error.

  6. #6
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: Unable to call vbs file function

    Could be a issue in your system. Login with new user and see if that helps you out

  7. #7
    Senior Member
    Join Date
    Sep 2007
    Posts
    114
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Unable to call vbs file function

    Is this the only file attached to your test. Check for the existence of the file <filename>.vbs.lck containing the same function name and hence there could be a mismatch.
    -Soumya

  8. #8
    Member
    Join Date
    Jan 2002
    Location
    Federal Way, WA, USA
    Posts
    69
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Unable to call vbs file function

    User permissions maybe? Is the logged on user the same, and set up the same on both machines?

  9. #9
    Member
    Join Date
    Jan 2008
    Posts
    336
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Unable to call vbs file function

    I faced this problem sometime ago. I have done everything well, but strange to see this error.
    I didnt remember how i overcome this, but i hope, i did "Repair" QTP option.
    Before try this, check this patch "QTP_00604".

  10. #10
    Apprentice
    Join Date
    Mar 2010
    Posts
    38
    Post Thanks / Like
    Blog Entries
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0
    I'm running into this problem as well. A cleanly-defined sub in my function library( a simple "hello world"-like sub) just gives me a "type mismatch" error for no reason. I even inserted the function call via the step generator to make sure I didn't mess up my syntax.

    So I have Public Sub derp defined in my function lib.

    I run derp from an action, and get the error. If I do x=derp, it works, but I shouldn't have to define an object or variable. If I do something a bit more complex like Public Sub Derp(byval x, byval y), it won't work at all.

    Functions defined within the action seem to work okay, but I want to be able to use a function library like I did before without copy-pastaing the whole thing.

    This happened after upgrading to .52. Sure, I'm not getting crashes/exceptions every 10 minutes, but at a great cost. Running the Repair option right now.

 

 
Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.00%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 01:49 PM.

Copyright BetaSoft Inc.