Forum Discussion

williamlee's avatar
williamlee
Contributor
14 years ago

Serial port communication

Hi ,



Does TC possible to use serial port as a communication between 2 PC? If yes,any idea about that.



thanks
  • Hi



    thanks for your reply. Yes it suit my application. Btw, may I know is there any available event support for the serial port dotnet?



    My application is like this.



    Two computer is connected together by using serial port, when one PC is sending some message to another PC thru serial cable, another PC is being trigger and goto process message.After finishing process, it continue is original task. Rather than looping for asking any available message, I think whether TC provide any event that same as C# application(DataReceive Event).



    thanks
  • Hi William,



    TestComplete does not have any built-in features for COM ports communication - it just allows using a COM object or .NET Framework objects to work with such ports. If you need to integrate your test script with some C# code intensively, you can either create a simple external .NET application and use it as an interface between TC and the COM port or create a Connected application to insert your TestComplete code into a C# application.