Epilepsy is not the only condition that causes seizures. When a person has a seizure, health care professionals perform tests to determine what has caused the seizure and how the condition can best be treated.