Forum Discussion

lordneeko's avatar
lordneeko
New Contributor
13 years ago

Access methods of an external DLL

We want to create automated tests for an application that controls an aircraft simulation.  It accesses reflective real-time memory and the test script would need to be able to access that memory as well.  There are well developed DLL files with methods for accessing the memory.  How can i use those DLL files within my testcomplete scripts.  Does the script language need to be in the same language the DLLs were written in? (still new to programming so not sure)



Thanks.

1 Reply

  • AlexeyK's avatar
    AlexeyK
    SmartBear Alumni (Retired)

    Scott,


    TestComplete supports calling DLL functions from scripts. To make a call to a function, you need to create script code that will "describe" the function and its parameter types. For the complete information, see the following section in TestComplete's help:

        "Calling Functions From DLLs"

        http://smartbear.com/support/viewarticle/11418/

       

    For quick start, you can go through the following tutorial:

        http://smartbear.com/support/viewarticle/11430/

       

    If you need to call functions from other external modules (e.g. .NET assemblies), go through the "Using External Functions" section:

        http://smartbear.com/support/viewarticle/11398/




    Does the script language need to be in the same language the DLLs were written in?


    No, you can use any scripting language supported by TestComplete.