Glucose test?

When do they do that test? I cant remember when they do them or around how many weeks they do them.