Have you done a google for compression test tutorial? You're bound to find something. The job is pretty straightforward, you connect the gauge, after removing all the injector pipes, in place of the injector or the glow plug depending on the fitting you have available and then crank the engine while you watch the gauge, repeated for each cylinder, any more than 10% variance between cylinders shows a loss of compression in the cylinders with lower compression. If you inject oil in the cylinders with low (this is a leakdown test) compression and the compression comes up, you have worn rings, if it stays the same, you have worn valve seats.