ZiBaT => Peter Levinsky => Tech => exercise
Nice Tools To Have
Updated : 2017-08-27

Tools to help detecting errors (Not testing)

Mission:

To install and have access to different tools to ease debugging programs.

Background:

You can have a lot of different tools helping you developing programs. In this collection you find four tools which can be relevant for you in your time at 3rd semester.

  1. SocketTest
    When developing socket programs either tcp or udp; a tool like SocketTest is very good. This tool can act like a tcp server or client or as a udp server or client.
     
  2. Wireshark
    When checking communication to and from your computer; a tool like Wireshark is a good packet sniffer, which snifs all communication at any layer to and from your computer, and it have a good presentation.
     
  3. Postman
    When you are to send all kind of http request; a tool like Postman is quite easy to use.
     
  4. Fiddler4
    When you are to sniffer http(web) trafic locally i.e. on localhost (or to / from a remote computer); a tool like Fiddler4 is very good, it presents the request and response fine.
     

Tool 1: SocketTest

For trying out (not test) simple network programs like socket programming (TCP or UDP) you can use SocketTest.

Before SocketTest can run you need the Java Runtime Environment (jre),
(NB Perhaps you already have it installed - ofcause then you do not need it)
so download and install jre :
https://java.com/en/download/win10.jsp

Download and unzip SocketTest : https://sourceforge.net/projects/sockettest/

Now you can run the SocketTest (click the exe-file) - and you should have this picture:

SocketTestScreen

 

 

Tool 2: Wireshark

For some background see CN WiresharkLab p. 105-106

This tool snifs all packets/commiunication to and from your computer - or rather your network-card i.e. can not see any communication on localhost!!!

Download and install this tool from: https://www.wireshark.org/download.html can work on most computers - but for some reason it will not work on very, very few computers.

Now you can run the Wireshark - and you should have this picture:

Wireshark-screen

Now you can start the packet sniffer by clicking on the connection you will like to see - in this case the wifi-connection - and the sniffing starting:

wireshark-screen

Now you have access to all communication to and from your computer.

Small exercise Start a browser and open http://pele-easj.dk see in wireshark the packet sent and received.

Tool 3: Postman

This tool can be used as a smart http-client, which can send GET,POST,PUT,DELETE etc HTTP request.

Download and install this tool from: https://www.getpostman.com/ .

Now you can run the Postman - and you should have this picture:

postman-screen

From here you can compose your HTTP-request, by setting the method (get, post etc) the uri (where you go to e.g pele-easj.dk/2017e-tek/SEMESTER.htm) and sometimes the body .
You will be able to see yhe response.

Small exercise compose a http request to see the homepage of Zealand.dk.

Tool 4: Fiddler4

This tool can be used to smoothly see the http request and responses both locally (localhost) and remote.

Download and install this tool from: https://www.telerik.com/download/fiddler-wizard

Now you can run the Fiddler4 - and you should have this picture

fiddler4-screen

For each request you can open and see the details of all elements in the http-request or http-response.

Small exercise, start the fiddler and from a browser open the pele-easj.dk page, then find the request in fiddler.