Automation of security tests

Regarding robotframework-zaplibrary does anywone can explain how to run OWASP ZAP ?

Never used it myself although it does sound quite useful. You might be better off reading up on OWASP-ZAP first and learning how to use it before trying to do so via robotframework-zaplibrary. At which point you might decide to avoid using the RF equivalent.

That ZAP tool seems quite powerful and already automatable.