We do some testing involving serial communications with a device. Right now, we are using Tera Term to communicate. I'd like to bypass the terminal program entirely and just have TestComplete send st...
Below is the sample VB Script code which is taken from the link
Sub Test Dim Port, i, s
Set Port = dotNET.System_IO_Ports.SerialPort.zctor_4("COM1", 9600) Port.Open
' Writing data to the port Port.Write "A " & Chr(27) ' Waiting for response aqUtils.Delay 1000 ' Processing response If Port.BytesToRead <> 0 Then s = Port.ReadExisting Log.Message s Else Log.Warning "No data" End If