If a test includes an IF ELSE block, the IF ELSE and the steps inside are not included when you use Convert All Steps to Code.
That would be a good feature to have.