Chosen Solution
I have opened my iMac to mace diagnostic with LED lights, what I see all of them are off. Since my computer can’t turn on at all, I was thinking that can be the power supply but when I see now that all led lights are off don’t know what that means?
Check your line cord and the connector ends wall outlet and system. Use a a multimeter to make sure the cord is working. Are you sure the outlet its self is properly wired? Get a simple Outlet checker to make sure. Also check the case connections from cord to power supply that could be bad. Do you get AC power to the power supply?