when do doctors get you to do glucose test?

I'm 22 weeks, my next appointment is at the very end of this month. When will I have to do the glucose test?