Forum Discussion

maite17's avatar
maite17
Occasional Contributor
7 years ago
Solved

SNMP queries | Audio board control

Hello,

We are interested in using TestComplete for future tests, but there are some questions to be answered first:

1. Does it provide any API/Library to handle SNMP queries (Get/Set Request) to our own SNMP Agent and also receive the traps from it? We read about the AlertSite, but we prefer to receive the traps from our agent.

2. We would like to control the audio board of a remote computer, is it possible to do it with TestComplete?

Thank you so much for your time.

Regards,

 

Maite

  • Hi Maite,

     

    > is it possible to check peripherals (like an specific audio board) with Distributed Testing?

    Well...

    Basically, TestComplete is a tool to drive external (tested) application as if a human user works with it. In order to be able to do this, tested application and TestComplete (or TestExecute as a less expensive runtime option in case of Distributed Testing) must run on the same machine.

    Additionally, TestComplete can call different APIs (Win32, DCOM, Java, HTTP, ...) and get and process their responses. Most of these APIs allow remote calls and in this case TestComplete and requested resource may be located on different machines. For example, you may use WMI to connect to remote computer, get and process the list of the hardware or software connected/installed on it and, depending on the capabilities of the given device or program, manage it.

    So, if your given audio board provides information to the operating system and provides the means for programmatic control, I am pretty sure that you should be able to check and control it from your test code.

    In the worst case you might be needing to talk with developers so that they provide you with some interfaces and/or utilities that will make it possible for you to control the audio board.

     

    Does the above answer your question ?

9 Replies

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3

    Hi Maite,

     

    More details about your scenario / use case might help with the answer.

    Meantime: TestComplete is an application designed to control and drive other applications. It is nor designed to be driven by other applications. (Though TestComplete is a COM server and can be controlled externally, but the exposed functionality is more about controlling tests execution and I am doubting that this is what you are looking for.)

    To communicate with external resources, TestComplete can call methods of COM objects, call quite a lot of Win32 functions, methods of .Net objects and Java classes.

     

    > to control the audio board of a remote computer

    TestComplete can control application that runs on the same computer where TestComplete does. But if the audio board provides the means of remote control (via COM, http, communication ports and the like) than most probably it can be controlled by TestComplete from remote computer.

     

    • maite17's avatar
      maite17
      Occasional Contributor

      Hi Alex,

       

      Related to the SNMP, we would like to set some values by Set Request query in our MIB with TestComplete. By doing so the Agent will send traps and we will see different alert messages in our desktop application.

       

      For the audio board control, we just want to check if there is any output. Our application generates an output in the remote audio board (which is not the one implemented in the motherboard), and we would like to test if there is any output there.

       

      Thank you for your replies.

       

      Regards,

       

      Maite

      • AlexKaras's avatar
        AlexKaras
        Champion Level 3

        Hi Maite,

         

        If I got you right about SNMP...

        TestComplete does not support SNMP queries/protocol out of the box.

        However, it looks like there are third-party SDKs/tools that can be called from TestComplete's code (using either DLL object or .Net Bridge) and do what you need.

        Several results of simple google search:

        http://www.snmptools.net/snmpsdk/

        https://www.codeproject.com/Articles/12993/SNMP-library

        Does this help somehow?

         

        As for the audio board, I am still not sure I got the scenario...

        How are you going to check if there is any output? To listen for the sound? By getting certain data from some port? Some other way?

        Apart from this, is it really required to have physically remote audio board? Can't it be connected to the same computer but addressed as if it is remote? (Like you can address your computer from its console as, say, \\myBox\c$\, which will emulate remote access.)