This screening test measures the level of glucose (sugar) in your blood. diabetes. This test usually is done between 24 weeks and 28 weeks of pregnancy. had gestational diabetes in a previous pregnancy, screening may be done in the first trimester of pregnancy.