When encountering a railroad crossing during the driving test, you should:

During the on-road driving test, you must not stop, change gears, pass another vehicle, or change lanes while any part of your vehicle is in a railroad crossing.
DMV Writen Test Logo