Your picture is of a start capacitor.
Refrigerator start capacitors rarely go bad.
To ohm a compressor you use the C S R method.
Can She Run.
"C" is the common terminal on the compressor.
"S" is the start terminal.
"R" is the run terminal.
With your meter set for ohms touch a meter lead to C and S. record your reading.
Touch C and R and record the reading.
Touch S and R and record your reading.
Touch each terminal and the compressor dome.
If you get a reading to the dome the compressor is shorted.
If you get no reading from the terminals the start motor is open.
This video will show how.
Use the same procedure on the refrigerator compressor.