Electrical Questions? Ask an Electrician Online.
Hi, I'm Mike G and I'll be assisting you. Do you have a 2 wire voltage tester?
That tester will only indicate there is a hot wire, but doesn't show a good neutral. To troubleshoot anything electrical a 2 wire tester is the basic tester. They are available at any home center for around $20.00.
I suggest a Volt/Con type tester. Easiest to use. Test the black to white on the feed wires to see if you have 120V. Then test black to ground. If no reading on the first test, you have an open neutral connection ahead of the light. If changing the fixture was because it didn't work, the problem wasn't the fixture to begin with.
OK, before getting a tester try one thing. Remove the wires on the switch, put them together to see if the switch is bad
You have an open neutral. The tester will verify that being the problem. Start with a test and I'll assist with finding where the problem is. Let me know when you're ready to continue.