Hi,
I am trying to send data to a COM port and found the following solution in TestComplete website
https://support.smartbear.com/testcomplete/docs/scripting/working-with/com-ports.html
I used the following solution as described in the web page (Python). However, when I run my test
it gave an error Permission denied. Any idea on how to solve this error?
def TestCOMPort():
ForWriting = 2;
TriStateFalse = 0;
fso = Sys.OleObject['Scripting.FileSystemObject']
f = fso.OpenTextFile("COM1:", ForWriting, False, TriStateFalse)
# Write data to the port
f.Write("A")
f.Write(" ")
f.Write("\x1B")
f.Close()