Understanding testing of nasl scripts

A post was split to a new topic: How to write from NASL into a file?