What is the test for sweaty hands and feet?

If the patient has ruled out the influence of life, medication and environmental habits on foot sweating, they can go to a department such as dermatology or endocrinology, where the doctor will decide on the examination items.