Results 1 to 4 of 4
  1. #1

    Using DLL in Winrunner Test Script

    How do we use a DLL created in VB in the Winrunner Test Script. I have to use a function defined in that DLL in Winrunner. I have used the following code
    extern int CheckStandValidations(string);
    load_dll("<DLL Path>");
    a = CheckStandValidations("aaa");
    this code is giving me RPC Error.

    How to solve this issue?

  2. #2
    Senior Member
    Join Date
    Sep 2002
    Chanhassen, MN, usa

    Re: Using DLL in Winrunner Test Script

    You might have better response if you try the Winrunner forum.

  3. #3

    Re: Using DLL in Winrunner Test Script

    You need to use VBScript to call VB dll directly form Winrunner. Put following code in VBScript file and execute it with WSCRIPT from Winrunner.
    Dim example as dll
    set example=createObject("dll.clsname");

    execute this VBS file form Wintrunner using WSCRIPT.

  4. #4

    Re: Using DLL in Winrunner Test Script

    hi rmprasad123..!!

    thanx for ur response.

    but i dont know how to use WScript.
    a detailed example would be very useful.
    and one more query is how can i identify VB.net controls on a form thru winrunner coz VB control names are detected by WR but .Net Control names are not detected.
    should i use DotNet Addin if so how to use it?

    thanx & regards,



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
BetaSoft Inc.
All times are GMT -8. The time now is 03:53 PM.

Copyright BetaSoft Inc.