This is usually done at night if the person usually sleeps at night. This test would have to be done when it is most natural for people. If they fall asleep at night, then this is when the test should be done. Doing this test during the day when the person is not used to it may provide results that are not too accurate.
There are different recordings that are being done while the sleep test is done. It will be analyzed by a professional after so that you can immediately see the results. The professional will determine if you have a health condition and how it can be cured.