One can do socket programming with this testing tool. Believe me, you can open a socket, send and receive TCP/UDP packets, Listen on a specific port, do messaging, etc. with AutoIT. If one has the idea, then creating a server is not so tough with this tool! Below listed are the functions which are available with AutoIT for playing around with the Messages. These are other than what I have mentioned in the earlier post, which talked about FTP programming.
- TCPStartup – To Start TCP services
- TCPConnect – To create a socket and connect to the specified server
- TCPSend – Send TCP data on a connected socket
- TCPListen – Creates and starts listening on a socket for incoming connections
- TCPAccept – Permits an incoming connection on a listening socket
- TCPRecv – Receives data from a connected socket
- TCPNameToIP – To convert internet name into the IP address
- TCPCloseSocket – Closes a TCP socket
- TCPShutdown – Shuts down the TCP services on the machine
- UDPStartup – To start the UDP services
- UDPOpen – Opens and connects a UDP socket to a server
- UDPBind – Creates a socket bound to an incoming connection
- UDPSend – Send UDP data on a connected socket
- UDPRecv – Receives UDP data on a connected socket
- UDPCloseSocket – Closes the UDP socket
- UDPShutdown – Shuts down the UDP services on the machine
I will come up with more examples and more on automated testing of UDP based protocols like TFTP. It is really easy and handy to use AutoIT, because it is a very simple function call which needs to be made for all these.
No comments:
Post a Comment