The technique comprises measuring the potential between the working and reference electrodes at open circuit over a given period of time, switching to potentiostatic control, measuring the current between the working and counter electrodes, and using the measured potential and current to determine the general corrosion rate and localized corrosion rates.