As long as you are not aircrew..
The automatic non residency test has only two sections if you are crew; being employed overseas doesn't help you and the days are either 16 or 46 depending on where you were resident in the previous 3 years.
It is pretty straightforward though, in a typically murky beaurocratic fashion. Just work throught the leaflet that Wiggy has linked to.
Good luck!