Can I automatically exchange my foreign licence for an Ontario licence without further testing?

Only if your country has a licence exchange agreement with Ontario: check with your country's authorities to see if this is the case. If your country does not have a licence exchange agreement with Ontario you may still get credit for your foreign driving experience, but you will need to pass all applicable tests.