fix for IllegalStateException

getString in postExecuted could lead to IllegalStateException on
Jenkins; moved them to PreExecute