Hemophilias A and B are diagnosed by blood tests that measure the level of coagulation activity for factors VIII (for hemophilia A) and IX (for hemophilia B).