how would you carry out a suitable test to determine the relationship between voltage and current when charging and discharging a capacitor

With ammeter and voltmeter probes and an oscilloscope.