Stomach pain

Khaleda
It is like the menstrual pain. I expect my period on the 17th of June. What is the cause of the pain? Do I have to do pregnancy test?