To measure the resistance of say a piece of wire or a resistor we must find the voltage (potential difference) between its two ends and the current flowing through it. To do this we use the circuit shown in the diagram.
Remember that an ammeter is always connected in series with the component and a voltmeter is always connected in parallel with the component.