SOAP-769 Fix slow data driven tests by avoiding to create icon animator for command line tests and not sleeping more than necessary for gui tests.
Merge branch 'slow-data-driven-tests-SOAP-769' into maintenance