I have a lot of mixed SMD capacitor where i have no idea what is the voltage rating and is a waste. Is there any method to determine voltage rating of a capacitor? i tried connect resistor and capacitor in parallel and measure the transient using oscilloscope, is there any calculation required from the waveform?
Measuring the transient, you can find only capacitance of the capacitor.
I'm afraid that you can measure only what was the breakdown voltage of the capacitor, if you connect it in series with a current limiting resistor and the microammeter to the regulated voltage source.
When you increase the voltage above the breakdown voltage. The current will increase. Depending on the type of the capacitor it may lead to its destruction (and I wouldn't dare to use this capacitor later on).
Please note, that so found breakdown voltage may vary significantly for different capacitors from the same batch. So the safe operating voltage for the rest of capacitors from the same batch should be assumed to be a few times lower (I don't know the exact number) than the breakdown voltage measured above.