public GroovyActionBuilder script ( Resource scriptResource , Charset charset ) { try { action . setScript ( FileUtils . readToString ( scriptResource , charset ) ) ; } catch ( IOException e ) { throw new CitrusRuntimeException ( "Failed to read script resource file" , e ) ; } return this ; }
Sets the Groovy script to execute .