In automation testing,will we record the script.

if not what is the process.