Testing the Intensity of Period Cramps?

A girl I know said her doctor tested the intensity of her period cramps and found out they are as bad as contractions during birth.

I have a lot of period problems, have been to several doctors, and am well researched on this topic but I have never heard of this test before, nor can I think of a reason this test would be done as it gives no answer to the cause of the problem.

Is this a bogus test the girl made up or has anyone else heard of or experienced this?