Usually no tests or exams are necessary but a medical evaluation may be done to rule out medical causes of sleepwalking. A psychological evaluation may also be done to exclude excessive stress or anxiety as a cause. Sleep tests may be done if the diagnosis is still unclear.